hls_common_javascript.lview 890 Bytes
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2
<?xml version="1.0" encoding="UTF-8"?>
<!--
3 4 5 6
    $Author: DJ
    $Date: 2013-11-30 下午4:29:15
    $Revision: 1.0
    $Purpose:
Spencer Chang's avatar
Spencer Chang committed
7 8 9 10 11 12 13
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure><![CDATA[
    ]]></a:init-procedure>
    <a:view>
        <script src="${/request/@context_path}/modules/hls/javascripts/hls.js" type="text/javascript"/>
        <script type="text/javascript"><![CDATA[
14

Spencer Chang's avatar
Spencer Chang committed
15 16 17 18 19 20
			if(!window.f_hls)
            {
                var f_hls = new HLS({
                	context_path : '${/request/@context_path}'
                });
            }
21

Spencer Chang's avatar
Spencer Chang committed
22 23 24 25 26 27 28 29 30 31 32
            function hlsCommon_validateCode(record,name,value)
			{
			    if(f_hls.validateCode(value))
			    {
			        return true;
			    }
			    else
			    {
			        return '代码只能包含字母、数字和下划线!';
			    }
			}
33

Spencer Chang's avatar
Spencer Chang committed
34 35 36
        ]]></script>
    </a:view>
</a:screen>