Showing
49 changed files
with
2015 additions
and
4 deletions
... | @@ -2,6 +2,31 @@ | ... | @@ -2,6 +2,31 @@ |
2 | pageEncoding="utf-8"%> | 2 | pageEncoding="utf-8"%> |
3 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | 3 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
4 | <%@ page isELIgnored ="false" %> | 4 | <%@ page isELIgnored ="false" %> |
5 | +<% | ||
6 | +String path = request.getContextPath(); | ||
7 | +String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | ||
8 | +%> | ||
9 | +<script type="text/javascript"> | ||
10 | +var sessionId = "<%=request.getSession().getId()%>"; | ||
11 | +var rootUrl ="<%=basePath%>"; | ||
12 | +</script> | ||
13 | + | ||
14 | +<style> | ||
15 | +.importButton { | ||
16 | + background: rgba(0, 0, 0, 0) url("css/default/images/portal/import.png") repeat-x scroll 0 0 / auto 100% !important; | ||
17 | + height: 30px; | ||
18 | + min-width: 70px; | ||
19 | + padding: 0 5px; | ||
20 | +} | ||
21 | + | ||
22 | +#btn-brand-import{ | ||
23 | + float: left; | ||
24 | +} | ||
25 | +#btn-brand-import .uploadify-queue{ | ||
26 | + display: inline-block; | ||
27 | +} | ||
28 | +</style> | ||
29 | + | ||
5 | <!-- 页面都为div 页面不要使用id 使用class选择 class命名规范:crm(系统名)-accountset(模块名)-XXX(功能名) --> | 30 | <!-- 页面都为div 页面不要使用id 使用class选择 class命名规范:crm(系统名)-accountset(模块名)-XXX(功能名) --> |
6 | <div class="data-brand"> | 31 | <div class="data-brand"> |
7 | <div class="north rs-navi" data-options="region:'north',border:false"> | 32 | <div class="north rs-navi" data-options="region:'north',border:false"> |
... | @@ -38,4 +63,7 @@ | ... | @@ -38,4 +63,7 @@ |
38 | </form> | 63 | </form> |
39 | </div> | 64 | </div> |
40 | </div> | 65 | </div> |
41 | -<script type="text/javascript">require(["brand/index"],function(brand){new brand;});</script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
66 | +<script type="text/javascript"> | ||
67 | + require(["brand/index"],function(fn){ | ||
68 | + fn(sessionId,rootUrl);}); | ||
69 | +</script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -14,4 +14,4 @@ | ... | @@ -14,4 +14,4 @@ |
14 | 14 | ||
15 | </div> | 15 | </div> |
16 | </div> | 16 | </div> |
17 | -<script type="text/javascript">require(["role/index"],function(Role){new Role();});</script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
17 | +<script type="text/javascript">require(["role/index"],function(Role){new Role('a','b');});</script> | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | +/** | ||
2 | + * Class类定义 | ||
3 | + */ | ||
4 | +define(function () { | ||
5 | + return function () { | ||
6 | + var superClass = null; | ||
7 | + var options = {}; | ||
8 | + var prototype = {}; | ||
9 | + for (var i = 0; i < arguments.length; i++) { | ||
10 | + if (typeof arguments[i] === "function") { | ||
11 | + superClass = arguments[i].prototype; | ||
12 | + } else if (typeof arguments[i] === "object") { | ||
13 | + options = arguments[i]; | ||
14 | + } | ||
15 | + } | ||
16 | + if (superClass) { | ||
17 | + prototype = superClass; | ||
18 | + for (var m in options) { | ||
19 | + if (prototype.hasOwnProperty(m)) { | ||
20 | + if (prototype[m] instanceof Array) { | ||
21 | + prototype[m].push(options[m]); | ||
22 | + } else { | ||
23 | + var array = [prototype[m]]; | ||
24 | + array.push(options[m]); | ||
25 | + prototype[m] = array; | ||
26 | + } | ||
27 | + } else { | ||
28 | + prototype[m] = options[m]; | ||
29 | + } | ||
30 | + } | ||
31 | + } else { | ||
32 | + for (var m in options) { | ||
33 | + prototype[m] = options[m]; | ||
34 | + } | ||
35 | + } | ||
36 | + var currentClass = function () { | ||
37 | + this.invokeMethod("variable", arguments); | ||
38 | + this.invokeMethod("initialize", arguments); | ||
39 | + this.invokeMethod("handler", arguments); | ||
40 | + }; | ||
41 | + currentClass.prototype = prototype; | ||
42 | + currentClass.prototype.invokeMethod = function (name, args) { | ||
43 | + var methods = this.getProperty(name); | ||
44 | + if (methods) { | ||
45 | + if (methods instanceof Array) { | ||
46 | + for (var i = 0; i < methods.length; i++) { | ||
47 | + execMethod(this, methods[i]); | ||
48 | + } | ||
49 | + } else { | ||
50 | + execMethod(this, methods); | ||
51 | + } | ||
52 | + } | ||
53 | + function execMethod(inst, method) { | ||
54 | + if (typeof method === "function") { | ||
55 | + method.apply(inst, args); | ||
56 | + } else { | ||
57 | + this.log(name + "is not function"); | ||
58 | + } | ||
59 | + } | ||
60 | + }; | ||
61 | + /** | ||
62 | + * 添加属性 | ||
63 | + * @param name | ||
64 | + * @param prop | ||
65 | + */ | ||
66 | + currentClass.prototype.setProperty = function (name, prop) { | ||
67 | + var tempProp = this.getProperty(name); | ||
68 | + tempProp = prop; | ||
69 | + }; | ||
70 | + /** | ||
71 | + * 追加属性 | ||
72 | + * @param name | ||
73 | + * @param prop | ||
74 | + */ | ||
75 | + currentClass.prototype.appendProperty = function (name, prop) { | ||
76 | + var tempProp = this.getProperty(name); | ||
77 | + if (tempProp) { | ||
78 | + if (methods instanceof Array) { | ||
79 | + tempProp.push(prop); | ||
80 | + } else { | ||
81 | + tempProp = prop; | ||
82 | + } | ||
83 | + } | ||
84 | + }; | ||
85 | + /** | ||
86 | + * 按名称得到当前属性 | ||
87 | + * @param name | ||
88 | + * @returns {*} | ||
89 | + */ | ||
90 | + currentClass.prototype.getProperty = function (name) { | ||
91 | + var tempProp; | ||
92 | + for (prop in this) { | ||
93 | + if (prop == name) { | ||
94 | + tempProp = this[prop]; | ||
95 | + break; | ||
96 | + } | ||
97 | + } | ||
98 | + return tempProp; | ||
99 | + }; | ||
100 | + /** | ||
101 | + * 向控制台输出信息 | ||
102 | + * @param info | ||
103 | + */ | ||
104 | + currentClass.prototype.log = function (info) { | ||
105 | + if (info && console && console.log) { | ||
106 | + console.log(info); | ||
107 | + } | ||
108 | + }; | ||
109 | + return currentClass; | ||
110 | + } | ||
111 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +define(function(){if("undefined"==typeof window)return{load:function(e,t,n){n()}};var e=document.getElementsByTagName("head")[0],t=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0,n=!1,r=!0;t[1]||t[7]?n=parseInt(t[1])<6||parseInt(t[7])<=9:t[2]||t[8]?r=!1:t[4]&&(n=parseInt(t[4])<18);var o={};o.pluginBuilder="./css-builder";var a,i,s,l=function(){a=document.createElement("style"),e.appendChild(a),i=a.styleSheet||a.sheet},u=0,d=[],c=function(e){u++,32==u&&(l(),u=0),i.addImport(e),a.onload=function(){f()}},f=function(){s();var e=d.shift();return e?(s=e[1],void c(e[0])):void(s=null)},h=function(e,t){if(i&&i.addImport||l(),i&&i.addImport)s?d.push([e,t]):(c(e),s=t);else{a.textContent='@import "'+e+'";';var n=setInterval(function(){try{a.sheet.cssRules,clearInterval(n),t()}catch(e){}},10)}},p=function(t,n){var o=document.createElement("link");if(o.type="text/css",o.rel="stylesheet",r)o.onload=function(){o.onload=function(){},setTimeout(n,7)};else var a=setInterval(function(){for(var e=0;e<document.styleSheets.length;e++){var t=document.styleSheets[e];if(t.href==o.href)return clearInterval(a),n()}},10);o.href=t,e.appendChild(o)};return o.normalize=function(e,t){return".css"==e.substr(e.length-4,4)&&(e=e.substr(0,e.length-4)),t(e)},o.load=function(e,t,r){(n?h:p)(t.toUrl(e+".css"),r)},o}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +/** | ||
2 | + * @license i18n 2.0.6 Copyright jQuery Foundation and other contributors. | ||
3 | + * Released under MIT license, http://github.com/requirejs/i18n/LICENSE | ||
4 | + */ | ||
5 | +/*jslint regexp: true */ | ||
6 | +/*global require: false, navigator: false, define: false */ | ||
7 | + | ||
8 | +/** | ||
9 | + * This plugin handles i18n! prefixed modules. It does the following: | ||
10 | + * | ||
11 | + * 1) A regular module can have a dependency on an i18n bundle, but the regular | ||
12 | + * module does not want to specify what locale to load. So it just specifies | ||
13 | + * the top-level bundle, like 'i18n!nls/colors'. | ||
14 | + * | ||
15 | + * This plugin will load the i18n bundle at nls/colors, see that it is a root/master | ||
16 | + * bundle since it does not have a locale in its name. It will then try to find | ||
17 | + * the best match locale available in that master bundle, then request all the | ||
18 | + * locale pieces for that best match locale. For instance, if the locale is 'en-us', | ||
19 | + * then the plugin will ask for the 'en-us', 'en' and 'root' bundles to be loaded | ||
20 | + * (but only if they are specified on the master bundle). | ||
21 | + * | ||
22 | + * Once all the bundles for the locale pieces load, then it mixes in all those | ||
23 | + * locale pieces into each other, then finally sets the context.defined value | ||
24 | + * for the nls/colors bundle to be that mixed in locale. | ||
25 | + * | ||
26 | + * 2) A regular module specifies a specific locale to load. For instance, | ||
27 | + * i18n!nls/fr-fr/colors. In this case, the plugin needs to load the master bundle | ||
28 | + * first, at nls/colors, then figure out what the best match locale is for fr-fr, | ||
29 | + * since maybe only fr or just root is defined for that locale. Once that best | ||
30 | + * fit is found, all of its locale pieces need to have their bundles loaded. | ||
31 | + * | ||
32 | + * Once all the bundles for the locale pieces load, then it mixes in all those | ||
33 | + * locale pieces into each other, then finally sets the context.defined value | ||
34 | + * for the nls/fr-fr/colors bundle to be that mixed in locale. | ||
35 | + */ | ||
36 | +(function () { | ||
37 | + 'use strict'; | ||
38 | + | ||
39 | + //regexp for reconstructing the master bundle name from parts of the regexp match | ||
40 | + //nlsRegExp.exec('foo/bar/baz/nls/en-ca/foo') gives: | ||
41 | + //['foo/bar/baz/nls/en-ca/foo', 'foo/bar/baz/nls/', '/', '/', 'en-ca', 'foo'] | ||
42 | + //nlsRegExp.exec('foo/bar/baz/nls/foo') gives: | ||
43 | + //['foo/bar/baz/nls/foo', 'foo/bar/baz/nls/', '/', '/', 'foo', ''] | ||
44 | + //so, if match[5] is blank, it means this is the top bundle definition. | ||
45 | + var nlsRegExp = /(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/; | ||
46 | + | ||
47 | + //Helper function to avoid repeating code. Lots of arguments in the | ||
48 | + //desire to stay functional and support RequireJS contexts without having | ||
49 | + //to know about the RequireJS contexts. | ||
50 | + function addPart(locale, master, needed, toLoad, prefix, suffix) { | ||
51 | + if (master[locale]) { | ||
52 | + needed.push(locale); | ||
53 | + if (master[locale] === true || master[locale] === 1) { | ||
54 | + toLoad.push(prefix + locale + '/' + suffix); | ||
55 | + } | ||
56 | + } | ||
57 | + } | ||
58 | + | ||
59 | + function addIfExists(req, locale, toLoad, prefix, suffix) { | ||
60 | + var fullName = prefix + locale + '/' + suffix; | ||
61 | + if (require._fileExists(req.toUrl(fullName + '.js'))) { | ||
62 | + toLoad.push(fullName); | ||
63 | + } | ||
64 | + } | ||
65 | + | ||
66 | + /** | ||
67 | + * Simple function to mix in properties from source into target, | ||
68 | + * but only if target does not already have a property of the same name. | ||
69 | + * This is not robust in IE for transferring methods that match | ||
70 | + * Object.prototype names, but the uses of mixin here seem unlikely to | ||
71 | + * trigger a problem related to that. | ||
72 | + */ | ||
73 | + function mixin(target, source, force) { | ||
74 | + var prop; | ||
75 | + for (prop in source) { | ||
76 | + if (source.hasOwnProperty(prop) && (!target.hasOwnProperty(prop) || force)) { | ||
77 | + target[prop] = source[prop]; | ||
78 | + } else if (typeof source[prop] === 'object') { | ||
79 | + if (!target[prop] && source[prop]) { | ||
80 | + target[prop] = {}; | ||
81 | + } | ||
82 | + mixin(target[prop], source[prop], force); | ||
83 | + } | ||
84 | + } | ||
85 | + } | ||
86 | + | ||
87 | + define(['module'], function (module) { | ||
88 | + var masterConfig = module.config ? module.config() : {}; | ||
89 | + | ||
90 | + return { | ||
91 | + version: '2.0.6', | ||
92 | + /** | ||
93 | + * Called when a dependency needs to be loaded. | ||
94 | + */ | ||
95 | + load: function (name, req, onLoad, config) { | ||
96 | + config = config || {}; | ||
97 | + | ||
98 | + if (config.locale) { | ||
99 | + masterConfig.locale = config.locale; | ||
100 | + } | ||
101 | + | ||
102 | + var masterName, | ||
103 | + match = nlsRegExp.exec(name), | ||
104 | + prefix = match[1], | ||
105 | + locale = match[4], | ||
106 | + suffix = match[5], | ||
107 | + parts = locale.split('-'), | ||
108 | + toLoad = [], | ||
109 | + value = {}, | ||
110 | + i, part, current = ''; | ||
111 | + | ||
112 | + //If match[5] is blank, it means this is the top bundle definition, | ||
113 | + //so it does not have to be handled. Locale-specific requests | ||
114 | + //will have a match[4] value but no match[5] | ||
115 | + if (match[5]) { | ||
116 | + //locale-specific bundle | ||
117 | + prefix = match[1]; | ||
118 | + masterName = prefix + suffix; | ||
119 | + } else { | ||
120 | + //Top-level bundle. | ||
121 | + masterName = name; | ||
122 | + suffix = match[4]; | ||
123 | + locale = masterConfig.locale; | ||
124 | + if (!locale) { | ||
125 | + locale = masterConfig.locale = | ||
126 | + typeof navigator === 'undefined' ? 'root' : | ||
127 | + ((navigator.languages && navigator.languages[0]) || | ||
128 | + navigator.language || | ||
129 | + navigator.userLanguage || 'root').toLowerCase(); | ||
130 | + } | ||
131 | + parts = locale.split('-'); | ||
132 | + } | ||
133 | + | ||
134 | + if (config.isBuild) { | ||
135 | + //Check for existence of all locale possible files and | ||
136 | + //require them if exist. | ||
137 | + toLoad.push(masterName); | ||
138 | + addIfExists(req, 'root', toLoad, prefix, suffix); | ||
139 | + for (i = 0; i < parts.length; i++) { | ||
140 | + part = parts[i]; | ||
141 | + current += (current ? '-' : '') + part; | ||
142 | + addIfExists(req, current, toLoad, prefix, suffix); | ||
143 | + } | ||
144 | + | ||
145 | + req(toLoad, function () { | ||
146 | + onLoad(); | ||
147 | + }); | ||
148 | + } else { | ||
149 | + //First, fetch the master bundle, it knows what locales are available. | ||
150 | + req([masterName], function (master) { | ||
151 | + //Figure out the best fit | ||
152 | + var needed = [], | ||
153 | + part; | ||
154 | + | ||
155 | + //Always allow for root, then do the rest of the locale parts. | ||
156 | + addPart('root', master, needed, toLoad, prefix, suffix); | ||
157 | + for (i = 0; i < parts.length; i++) { | ||
158 | + part = parts[i]; | ||
159 | + current += (current ? '-' : '') + part; | ||
160 | + addPart(current, master, needed, toLoad, prefix, suffix); | ||
161 | + } | ||
162 | + | ||
163 | + //Load all the parts missing. | ||
164 | + req(toLoad, function () { | ||
165 | + var i, partBundle, part; | ||
166 | + for (i = needed.length - 1; i > -1 && needed[i]; i--) { | ||
167 | + part = needed[i]; | ||
168 | + partBundle = master[part]; | ||
169 | + if (partBundle === true || partBundle === 1) { | ||
170 | + partBundle = req(prefix + part + '/' + suffix); | ||
171 | + } | ||
172 | + mixin(value, partBundle); | ||
173 | + } | ||
174 | + | ||
175 | + //All done, notify the loader. | ||
176 | + onLoad(value); | ||
177 | + }); | ||
178 | + }); | ||
179 | + } | ||
180 | + } | ||
181 | + }; | ||
182 | + }); | ||
183 | +}()); |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Bladsy'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'Van {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Wys (from) tot (to) van (total) items'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Verwerking, wag asseblief ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Die styl'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Die veld is verpligtend.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = "Gee 'n geldige e-pos adres."; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = "Gee 'n geldige URL nie."; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = "Voer 'n waarde tussen {0} en {1}."; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'Vandag'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Sluit'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Էջ'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'ից {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Դիտել {from}-ից {to}-ը {total} գրառումից'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Մշակվում է, խնդրում ենք սպասել ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Այո'; | ||
14 | + $.messager.defaults.cancel = 'Փակել'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Այս դաշտը պարտադիր է.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Խնդրում ենք մուտքագրել գործող e-mail հասցե.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Խնդրում ենք մուտքագրել գործող URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Խնդրում ենք մուտքագրել արժեք {0} {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Խնդրում ենք ուղղել այս դաշտը.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.firstDay = 1; | ||
32 | + $.fn.calendar.defaults.weeks = ['Կ.','Ե.','Ե.','Չ.','Հ.','Ու.','Շ.']; | ||
33 | + $.fn.calendar.defaults.months = ['Հունվար', 'Փետրվար', 'Մարտ', 'Ապրիլ', 'Մայիս', 'Հունիս', 'Հուլիս', 'Օգոստոս', 'Սեպտեմբեր', 'Հոկտեմբեր', 'Նոյեմբեր', 'Դեկտեմբեր']; | ||
34 | +} | ||
35 | +if ($.fn.datebox){ | ||
36 | + $.fn.datebox.defaults.currentText = 'Այսօր'; | ||
37 | + $.fn.datebox.defaults.closeText = 'Փակել'; | ||
38 | + $.fn.datebox.defaults.okText = 'Այո'; | ||
39 | +} | ||
40 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
41 | + $.extend($.fn.datetimebox.defaults,{ | ||
42 | + currentText: $.fn.datebox.defaults.currentText, | ||
43 | + closeText: $.fn.datebox.defaults.closeText, | ||
44 | + okText: $.fn.datebox.defaults.okText | ||
45 | + }); | ||
46 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'صفحة'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'من {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'عرض {from} إلى {to} من {total} عنصر'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'معالجة, الرجاء الإنتظار ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'موافق'; | ||
14 | + $.messager.defaults.cancel = 'إلغاء'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'هذا الحقل مطلوب.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'الرجاء إدخال بريد إلكتروني صحيح.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'الرجاء إدخال رابط صحيح.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'الرجاء إدخال قيمة بين {0} و {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'الرجاء التأكد من الحقل.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
32 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'اليوم'; | ||
36 | + $.fn.datebox.defaults.closeText = 'إغلاق'; | ||
37 | + $.fn.datebox.defaults.okText = 'موافق'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Страница'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'от {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Показани {from} за {to} от {total} продукти'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Обработка, моля изчакайте ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Добре'; | ||
14 | + $.messager.defaults.cancel = 'Задрасквам'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Това поле е задължително.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Моля, въведете валиден имейл адрес.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Моля въведете валиден URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Моля, въведете стойност между {0} и {1}.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'Днес'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Близо'; | ||
36 | + $.fn.datebox.defaults.okText = 'Добре'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Pàgina'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'de {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = "Veient {from} a {to} de {total} d'articles"; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Elaboració, si us plau esperi ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Cancel'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Aquest camp és obligatori.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Introduïu una adreça de correu electrònic vàlida.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Si us plau, introduïu un URL vàlida.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Si us plau, introduïu un valor entre {0} i {1}.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'Avui'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Tancar'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Strana'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'z {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Zobrazuji {from} do {to} z {total} položky'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Zpracování, čekejte prosím ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Zrušit'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Toto pole je vyžadováno.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Zadejte prosím platnou e-mailovou adresu.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Zadejte prosím platnou adresu URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Prosím, zadejte hodnotu mezi {0} a {1}.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'Dnes'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Zavřít'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Strana'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'z {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Zobrazuji záznam {from} až {to} z {total}.'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Pracuji, čekejte prosím…'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Zrušit'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Toto pole je vyžadováno.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Zadejte, prosím, platnou e-mailovou adresu.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Zadejte, prosím, platnou adresu URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Zadejte, prosím, hodnotu mezi {0} a {1}.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['N','P','Ú','S','Č','P','S']; //neděle pondělí úterý středa čtvrtek pátek sobota | ||
31 | + $.fn.calendar.defaults.months = ['led', 'únr', 'bře', 'dub', 'kvě', 'čvn', 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro']; //leden únor březen duben květen červen červenec srpen září říjen listopad prosinec | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'Dnes'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Zavřít'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Page'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'af {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Viser {from} til {to} af {total} poster'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Behandling, vent venligst ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Annuller'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Dette felt er påkrævet.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Angiv en gyldig e-mail-adresse.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Angiv en gyldig webadresse.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Angiv en værdi mellem {0} og {1}.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'I dag'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Luk'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Seite'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'von {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = '{from} bis {to} von {total} Datensätzen'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Verarbeitung läuft, bitte warten ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'OK'; | ||
14 | + $.messager.defaults.cancel = 'Abbruch'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Dieses Feld wird benötigt.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Bitte geben Sie eine gültige E-Mail-Adresse ein.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Bitte geben Sie eine gültige URL ein.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Bitte geben Sie einen Wert zwischen {0} und {1} ein.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.firstDay = 1; | ||
31 | + $.fn.calendar.defaults.weeks = ['S','M','D','M','D','F','S']; | ||
32 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Heute'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Schließen'; | ||
37 | + $.fn.datebox.defaults.okText = 'OK'; | ||
38 | + $.fn.datebox.defaults.formatter = function(date){ | ||
39 | + var y = date.getFullYear(); | ||
40 | + var m = date.getMonth()+1; | ||
41 | + var d = date.getDate(); | ||
42 | + return (d<10?('0'+d):d)+'.'+(m<10?('0'+m):m)+'.'+y; | ||
43 | + }; | ||
44 | + $.fn.datebox.defaults.parser = function(s){ | ||
45 | + if (!s) return new Date(); | ||
46 | + var ss = s.split('.'); | ||
47 | + var m = parseInt(ss[1],10); | ||
48 | + var d = parseInt(ss[0],10); | ||
49 | + var y = parseInt(ss[2],10); | ||
50 | + if (!isNaN(y) && !isNaN(m) && !isNaN(d)){ | ||
51 | + return new Date(y,m-1,d); | ||
52 | + } else { | ||
53 | + return new Date(); | ||
54 | + } | ||
55 | + }; | ||
56 | +} | ||
57 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
58 | + $.extend($.fn.datetimebox.defaults,{ | ||
59 | + currentText: $.fn.datebox.defaults.currentText, | ||
60 | + closeText: $.fn.datebox.defaults.closeText, | ||
61 | + okText: $.fn.datebox.defaults.okText | ||
62 | + }); | ||
63 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Σελίδα'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'από {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Εμφάνιση {from} εώς {to} από {total} αντικείμενα'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Γίνεται Επεξεργασία, Παρακαλώ Περιμένετε ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Εντάξει'; | ||
14 | + $.messager.defaults.cancel = 'Άκυρο'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Το πεδίο είναι υποχρεωτικό.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Παρακαλώ εισάγετε σωστή Ηλ.Διεύθυνση.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Παρακαλώ εισάγετε σωστό σύνδεσμο.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Παρακαλώ εισάγετε τιμή μεταξύ {0} και {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Παρακαλώ διορθώστε αυτό το πεδίο.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ']; | ||
32 | + $.fn.calendar.defaults.months = ['Ιαν', 'Φεβ', 'Μαρ', 'Απρ', 'Μαϊ', 'Ιου', 'Ιου', 'Αυγ', 'Σεπ', 'Οκτ', 'Νοε', 'Δεκ']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Σήμερα'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Κλείσιμο'; | ||
37 | + $.fn.datebox.defaults.okText = 'Εντάξει'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Page'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'of {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Displaying {from} to {to} of {total} items'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Processing, please wait ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Cancel'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'This field is required.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Please enter a valid email address.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Please enter a valid URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Please enter a value between {0} and {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Please fix this field.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
32 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Today'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Close'; | ||
37 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Página'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'de {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} elementos'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Procesando, por favor espere ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Aceptar'; | ||
14 | + $.messager.defaults.cancel = 'Cancelar'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Este campo es obligatorio.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Por favor ingrese una dirección de correo válida.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Por favor ingrese una URL válida.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Por favor ingrese un valor entre {0} y {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Por favor corrija este campo.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['Do','Lu','Ma','Mi','Ju','Vi','Sá']; | ||
32 | + $.fn.calendar.defaults.months = ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Hoy'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Cerrar'; | ||
37 | + $.fn.datebox.defaults.okText = 'Aceptar'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Page'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'de {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Affichage de {from} et {to} au {total} des articles'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = "Traitement, s'il vous plaît patienter ..."; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Annuler'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Ce champ est obligatoire.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = "S'il vous plaît entrer une adresse email valide."; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = "S'il vous plaît entrer une URL valide."; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = "S'il vous plaît entrez une valeur comprise entre {0} et {1}."; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = "Aujourd'hui"; | ||
35 | + $.fn.datebox.defaults.closeText = 'Fermer'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Pagina'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'di {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Visualizzazione {from} a {to} di {total} elementi'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'In lavorazione, attendere ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Annulla'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Questo campo è richiesto.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Inserisci un indirizzo email valido.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Inserisci un URL valido.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Inserisci un valore tra {0} e {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Aggiusta questo campo.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['D','L','M','M','G','V','S']; | ||
32 | + $.fn.calendar.defaults.months = ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Oggi'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Chiudi'; | ||
37 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'ページ'; | ||
3 | + $.fn.pagination.defaults.afterPageText = '{pages} 中'; | ||
4 | + $.fn.pagination.defaults.displayMsg = '全 {total} アイテム中 {from} から {to} を表示中'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = '処理中です。少々お待ちください...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'OK'; | ||
14 | + $.messager.defaults.cancel = 'キャンセル'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = '入力は必須です。'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = '正しいメールアドレスを入力してください。'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = '正しいURLを入力してください。'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = '{0} から {1} の範囲の正しい値を入力してください。'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'このフィールドを修正してください。'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['日','月','火','水','木','金','土']; | ||
32 | + $.fn.calendar.defaults.months = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = '今日'; | ||
36 | + $.fn.datebox.defaults.closeText = '閉じる'; | ||
37 | + $.fn.datebox.defaults.okText = 'OK'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Pagina'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'van {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Tonen van {from} tot {to} van de {total} items'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Verwerking, even geduld ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Annuleren'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Dit veld is verplicht.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Geef een geldig e-mailadres.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Vul een geldige URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Voer een waarde tussen {0} en {1}.'; | ||
28 | +} | ||
29 | +if ($.fn.calendar){ | ||
30 | + $.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S']; | ||
31 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | ||
32 | +} | ||
33 | +if ($.fn.datebox){ | ||
34 | + $.fn.datebox.defaults.currentText = 'Vandaag'; | ||
35 | + $.fn.datebox.defaults.closeText = 'Dicht'; | ||
36 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
37 | +} | ||
38 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
39 | + $.extend($.fn.datetimebox.defaults,{ | ||
40 | + currentText: $.fn.datebox.defaults.currentText, | ||
41 | + closeText: $.fn.datebox.defaults.closeText, | ||
42 | + okText: $.fn.datebox.defaults.okText | ||
43 | + }); | ||
44 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Strona'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'z {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Wyświetlono elementy od {from} do {to} z {total}'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Przetwarzanie, proszę czekać ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Cancel'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'To pole jest wymagane.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Wprowadź poprawny adres email.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Wprowadź poprawny adres URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Wprowadź wartość z zakresu od {0} do {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Proszę poprawić to pole.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['N','P','W','Ś','C','P','S']; | ||
32 | + $.fn.calendar.defaults.months = ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Dzisiaj'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Zamknij'; | ||
37 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Página'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'de {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} itens'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Processando, aguarde ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Cancelar'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Esse campo é requerido.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Insira um endereço de email válido.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Insira uma URL válida.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Insira uma valor entre {0} e {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Corrija esse campo.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['D','S','T','Q','Q','S','S']; | ||
32 | + $.fn.calendar.defaults.months = ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = 'Hoje'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Fechar'; | ||
37 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Страница'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'из {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Просмотр {from} до {to} из {total} записей'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Обрабатывается, пожалуйста ждите ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = 'Ок'; | ||
14 | + $.messager.defaults.cancel = 'Закрыть'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Это поле необходимо.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Пожалуйста введите корректный e-mail адрес.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Пожалуйста введите корректный URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Пожалуйста введите зачение между {0} и {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Пожалуйста исправте это поле.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.firstDay = 1; | ||
32 | + $.fn.calendar.defaults.weeks = ['В','П','В','С','Ч','П','С']; | ||
33 | + $.fn.calendar.defaults.months = ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек']; | ||
34 | +} | ||
35 | +if ($.fn.datebox){ | ||
36 | + $.fn.datebox.defaults.currentText = 'Сегодня'; | ||
37 | + $.fn.datebox.defaults.closeText = 'Закрыть'; | ||
38 | + $.fn.datebox.defaults.okText = 'Ок'; | ||
39 | +} | ||
40 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
41 | + $.extend($.fn.datetimebox.defaults,{ | ||
42 | + currentText: $.fn.datebox.defaults.currentText, | ||
43 | + closeText: $.fn.datebox.defaults.closeText, | ||
44 | + okText: $.fn.datebox.defaults.okText | ||
45 | + }); | ||
46 | +} |
1 | +if ($.fn.pagination) { | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Sida'; | ||
3 | + $.fn.pagination.defaults.afterPageText = 'av {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = 'Visar {from} till {to} av {total} poster'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid) { | ||
7 | + $.fn.datagrid.defaults.loadMsg = 'Bearbetar, vänligen vänta ...'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid) { | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager) { | ||
13 | + $.messager.defaults.ok = 'Ok'; | ||
14 | + $.messager.defaults.cancel = 'Avbryt'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = 'Detta fält är obligatoriskt.'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox) { | ||
25 | + $.fn.validatebox.defaults.rules.email.message = 'Vänligen ange en korrekt e-post adress.'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = 'Vänligen ange en korrekt URL.'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = 'Vänligen ange ett nummer mellan {0} och {1}.'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = 'Vänligen åtgärda detta fält.'; | ||
29 | +} | ||
30 | +if ($.fn.calendar) { | ||
31 | + $.fn.calendar.defaults.weeks = ['Sön', 'Mån', 'Tis', 'Ons', 'Tors', 'Fre', 'Lör']; | ||
32 | + $.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec']; | ||
33 | +} | ||
34 | +if ($.fn.datebox) { | ||
35 | + $.fn.datebox.defaults.currentText = 'I dag'; | ||
36 | + $.fn.datebox.defaults.closeText = 'Stäng'; | ||
37 | + $.fn.datebox.defaults.okText = 'Ok'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox) { | ||
40 | + $.extend($.fn.datetimebox.defaults, { | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = 'Sayfa'; | ||
3 | + $.fn.pagination.defaults.afterPageText = ' / {pages}'; | ||
4 | + $.fn.pagination.defaults.displayMsg = '{from} ile {to} arası gösteriliyor, toplam {total} kayıt'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.panel.defaults.loadingMessage = "Yükleniyor..."; | ||
8 | +} | ||
9 | + | ||
10 | +if ($.fn.datagrid){ | ||
11 | + $.fn.datagrid.defaults.loadingMessage = "Yükleniyor..."; | ||
12 | + $.fn.datagrid.defaults.loadMsg = 'İşleminiz Yapılıyor, lütfen bekleyin ...'; | ||
13 | +} | ||
14 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
15 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
16 | +} | ||
17 | +if ($.messager){ | ||
18 | + $.messager.defaults.ok = 'Tamam'; | ||
19 | + $.messager.defaults.cancel = 'İptal'; | ||
20 | +} | ||
21 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
22 | + 'combo','combobox','combogrid','combotree', | ||
23 | + 'datebox','datetimebox','numberbox', | ||
24 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
25 | + if ($.fn[plugin]){ | ||
26 | + $.fn[plugin].defaults.missingMessage = 'Bu alan zorunludur.'; | ||
27 | + } | ||
28 | +}); | ||
29 | +if ($.fn.validatebox){ | ||
30 | + $.fn.validatebox.defaults.rules.email.message = 'Lütfen geçerli bir email adresi giriniz.'; | ||
31 | + $.fn.validatebox.defaults.rules.url.message = 'Lütfen geçerli bir URL giriniz.'; | ||
32 | + $.fn.validatebox.defaults.rules.length.message = 'Lütfen {0} ile {1} arasında bir değer giriniz.'; | ||
33 | + $.fn.validatebox.defaults.rules.remote.message = 'Lütfen bu alanı düzeltiniz.'; | ||
34 | +} | ||
35 | +if ($.fn.calendar){ | ||
36 | + $.fn.calendar.defaults.weeks = ['Pz','Pt','Sa','Ça','Pe','Cu','Ct']; | ||
37 | + $.fn.calendar.defaults.months = ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara']; | ||
38 | +} | ||
39 | +if ($.fn.datebox){ | ||
40 | + $.fn.datebox.defaults.currentText = 'Bugün'; | ||
41 | + $.fn.datebox.defaults.closeText = 'Kapat'; | ||
42 | + $.fn.datebox.defaults.okText = 'Tamam'; | ||
43 | +} | ||
44 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
45 | + $.extend($.fn.datetimebox.defaults,{ | ||
46 | + currentText: $.fn.datebox.defaults.currentText, | ||
47 | + closeText: $.fn.datebox.defaults.closeText, | ||
48 | + okText: $.fn.datebox.defaults.okText | ||
49 | + }); | ||
50 | + | ||
51 | + $.fn.datebox.defaults.formatter=function(date){ | ||
52 | + var y=date.getFullYear(); | ||
53 | + var m=date.getMonth()+1; | ||
54 | + var d=date.getDate(); | ||
55 | + if(m<10){m="0"+m;} | ||
56 | + if(d<10){d="0"+d;} | ||
57 | + return d+"."+m+"."+y; | ||
58 | + }; | ||
59 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = '第'; | ||
3 | + $.fn.pagination.defaults.afterPageText = '共{pages}页'; | ||
4 | + $.fn.pagination.defaults.displayMsg = '显示{from}到{to},共{total}记录'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = '正在处理,请稍待。。。'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = '确定'; | ||
14 | + $.messager.defaults.cancel = '取消'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = '该输入项为必输项'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = '请输入有效的电子邮件地址'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = '请输入有效的URL地址'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = '输入内容长度必须介于{0}和{1}之间'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = '请修正该字段'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六']; | ||
32 | + $.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = '今天'; | ||
36 | + $.fn.datebox.defaults.closeText = '关闭'; | ||
37 | + $.fn.datebox.defaults.okText = '确定'; | ||
38 | + $.fn.datebox.defaults.formatter = function(date){ | ||
39 | + var y = date.getFullYear(); | ||
40 | + var m = date.getMonth()+1; | ||
41 | + var d = date.getDate(); | ||
42 | + return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d); | ||
43 | + }; | ||
44 | + $.fn.datebox.defaults.parser = function(s){ | ||
45 | + if (!s) return new Date(); | ||
46 | + var ss = s.split('-'); | ||
47 | + var y = parseInt(ss[0],10); | ||
48 | + var m = parseInt(ss[1],10); | ||
49 | + var d = parseInt(ss[2],10); | ||
50 | + if (!isNaN(y) && !isNaN(m) && !isNaN(d)){ | ||
51 | + return new Date(y,m-1,d); | ||
52 | + } else { | ||
53 | + return new Date(); | ||
54 | + } | ||
55 | + }; | ||
56 | +} | ||
57 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
58 | + $.extend($.fn.datetimebox.defaults,{ | ||
59 | + currentText: $.fn.datebox.defaults.currentText, | ||
60 | + closeText: $.fn.datebox.defaults.closeText, | ||
61 | + okText: $.fn.datebox.defaults.okText | ||
62 | + }); | ||
63 | +} | ||
64 | +if ($.fn.datetimespinner){ | ||
65 | + $.fn.datetimespinner.defaults.selections = [[0,4],[5,7],[8,10],[11,13],[14,16],[17,19]] | ||
66 | +} |
1 | +if ($.fn.pagination){ | ||
2 | + $.fn.pagination.defaults.beforePageText = '第'; | ||
3 | + $.fn.pagination.defaults.afterPageText = '共{pages}頁'; | ||
4 | + $.fn.pagination.defaults.displayMsg = '顯示{from}到{to},共{total}記錄'; | ||
5 | +} | ||
6 | +if ($.fn.datagrid){ | ||
7 | + $.fn.datagrid.defaults.loadMsg = '正在處理,請稍待。。。'; | ||
8 | +} | ||
9 | +if ($.fn.treegrid && $.fn.datagrid){ | ||
10 | + $.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg; | ||
11 | +} | ||
12 | +if ($.messager){ | ||
13 | + $.messager.defaults.ok = '確定'; | ||
14 | + $.messager.defaults.cancel = '取消'; | ||
15 | +} | ||
16 | +$.map(['validatebox','textbox','filebox','searchbox', | ||
17 | + 'combo','combobox','combogrid','combotree', | ||
18 | + 'datebox','datetimebox','numberbox', | ||
19 | + 'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){ | ||
20 | + if ($.fn[plugin]){ | ||
21 | + $.fn[plugin].defaults.missingMessage = '該輸入項為必輸項'; | ||
22 | + } | ||
23 | +}); | ||
24 | +if ($.fn.validatebox){ | ||
25 | + $.fn.validatebox.defaults.rules.email.message = '請輸入有效的電子郵件地址'; | ||
26 | + $.fn.validatebox.defaults.rules.url.message = '請輸入有效的URL地址'; | ||
27 | + $.fn.validatebox.defaults.rules.length.message = '輸入內容長度必須介於{0}和{1}之間'; | ||
28 | + $.fn.validatebox.defaults.rules.remote.message = '請修正此欄位'; | ||
29 | +} | ||
30 | +if ($.fn.calendar){ | ||
31 | + $.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六']; | ||
32 | + $.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月']; | ||
33 | +} | ||
34 | +if ($.fn.datebox){ | ||
35 | + $.fn.datebox.defaults.currentText = '今天'; | ||
36 | + $.fn.datebox.defaults.closeText = '關閉'; | ||
37 | + $.fn.datebox.defaults.okText = '確定'; | ||
38 | +} | ||
39 | +if ($.fn.datetimebox && $.fn.datebox){ | ||
40 | + $.extend($.fn.datetimebox.defaults,{ | ||
41 | + currentText: $.fn.datebox.defaults.currentText, | ||
42 | + closeText: $.fn.datebox.defaults.closeText, | ||
43 | + okText: $.fn.datebox.defaults.okText | ||
44 | + }); | ||
45 | +} | ||
46 | +if ($.fn.datetimespinner){ | ||
47 | + $.fn.datetimespinner.defaults.selections = [[0,4],[5,7],[8,10],[11,13],[14,16],[17,19]] | ||
48 | +} |
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
... | @@ -6,7 +6,7 @@ define(['i18n!base/nls/resource', 'cls', 'jquery', '../authz.jsonp?callback=defi | ... | @@ -6,7 +6,7 @@ define(['i18n!base/nls/resource', 'cls', 'jquery', '../authz.jsonp?callback=defi |
6 | extendJqueryFunction(); | 6 | extendJqueryFunction(); |
7 | localeRunsaPlugin(); | 7 | localeRunsaPlugin(); |
8 | extendEasyuiOptions(); | 8 | extendEasyuiOptions(); |
9 | - extendEasyuiValidate(); | 9 | + // extendEasyuiValidate(); |
10 | }, | 10 | }, |
11 | initialize: function () { | 11 | initialize: function () { |
12 | 12 | ... | ... |
1 | +define({ | ||
2 | + root:{ | ||
3 | + btn:{ | ||
4 | + yes:'是', | ||
5 | + no:'否', | ||
6 | + refresh:'刷新', | ||
7 | + more:'更多', | ||
8 | + confirm:'确定', | ||
9 | + select:'查询条件', | ||
10 | + add:'新建', | ||
11 | + append:'添加', | ||
12 | + remove:'删除', | ||
13 | + del:'移除', | ||
14 | + submit:'提交', | ||
15 | + edit:'编辑', | ||
16 | + cancel:'取消', | ||
17 | + print:'打印', | ||
18 | + more:'更多', | ||
19 | + save:'保存', | ||
20 | + discount:"编辑现价折数带", | ||
21 | + find:"查询", | ||
22 | + insertLevel:'插平级', | ||
23 | + addSubordinate:'添下级', | ||
24 | + moveUp:'上移', | ||
25 | + moveDown:'下移', | ||
26 | + approval:'审批', | ||
27 | + stopOpt:'中止', | ||
28 | + continueOpt:'继续执行', | ||
29 | + seeOpt:'查看', | ||
30 | + addByFile:'导入', /*import 在IE浏览器上是关键字,请引用到的地方修改*/ | ||
31 | + selCustomer:"选择用户", | ||
32 | + downloadExcel:"导出模板", | ||
33 | + exportPdf:'导出PDF' | ||
34 | + }, | ||
35 | + confirmDelete:'你确定要删除这条信息吗?', | ||
36 | + msgEditTip:'请选择要编辑的数据!', | ||
37 | + msgRemoveTip:'请选择要删除的数据!', | ||
38 | + msgDefaultTip:'请选择对象!', | ||
39 | + msg_title:"系统提示", | ||
40 | + onExit:'您确定退出门户吗?', | ||
41 | + msgOptTip:'确定进行该操作?', | ||
42 | + msgSuccess:'操作成功', | ||
43 | + loadingText:'加载中,请稍候...' | ||
44 | + }, | ||
45 | + "en-US": true, | ||
46 | + "en-US-paris": true | ||
47 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
This diff is collapsed. Click to expand it.
1 | +define(['i18n!index/nls/resource','cls'],function(resource,Class){ | ||
2 | + return Class({ | ||
3 | + resource:resource, | ||
4 | + variable:function(){ | ||
5 | + this.log("layout variable"); | ||
6 | + this.layout=$(document.body).children(".rs-base").children(".rs-layout").layout({fit:true}); | ||
7 | + this.center=this.layout.layout("panel","center"); | ||
8 | + this.north=this.layout.layout("panel","north");; | ||
9 | + this.west=this.layout.layout("panel","west"); | ||
10 | + this.tabs=$('<div class="rs-tabs"></div>').appendTo(this.center); | ||
11 | + }, | ||
12 | + initialize:function(){ | ||
13 | + this.log("layout initialize"); | ||
14 | + initTabs(this); | ||
15 | + }, | ||
16 | + handler:function(){ | ||
17 | + this.log("layout handler"); | ||
18 | + layoutResize(this); | ||
19 | + }, | ||
20 | + showPanel:function(node,r,fn) { | ||
21 | + //打开先项卡 isView:强制刷新 ,callback:回调函数 | ||
22 | + var isView=false; | ||
23 | + var callback; | ||
24 | + for (var i = 1; i < arguments.length; i++) { | ||
25 | + if (typeof (arguments[i]) == "boolean") { | ||
26 | + isView = arguments[i]; | ||
27 | + } else if (typeof (arguments[i]) == "function") { | ||
28 | + callback = arguments[i]; | ||
29 | + } | ||
30 | + } | ||
31 | + if (node.url) { | ||
32 | + var list = this.tabs.tabs("tabs"); | ||
33 | + var isFind = false; | ||
34 | + for (var i = 0; i < list.length; i++) { | ||
35 | + if (list[i].panel("options").title == node.text) { | ||
36 | + tabs.tabs("select", i); | ||
37 | + isFind = true; | ||
38 | + if(isView){ | ||
39 | + var index=tabs.tabs("getTabIndex",list[i]); | ||
40 | + tabs.tabs("close",index); | ||
41 | + isFind=false; | ||
42 | +// list[i].panel('options').tabParams=node; | ||
43 | +// list[i].panel("refresh",changeUrl(node.url)); | ||
44 | + } | ||
45 | + break; | ||
46 | + } | ||
47 | + } | ||
48 | + if (!isFind) { | ||
49 | + this.tabs.tabs("add", { | ||
50 | + title : node.text, | ||
51 | + closable : true, | ||
52 | + href : changeUrl(node.url), | ||
53 | + tabParams : node, | ||
54 | +// onResize:function(width, height){ | ||
55 | +// $(this).triggerHandler("_resize"); | ||
56 | +// }, | ||
57 | + callback:callback | ||
58 | + }); | ||
59 | + } | ||
60 | + } | ||
61 | + function changeUrl(){ | ||
62 | + var frame=node.url.length>8&&node.url.substr(0,9)=="iframe://"; | ||
63 | + if(frame){ | ||
64 | + node.url=(node.url+(node.url.indexOf('?')>0?'&':'?')+'platid='+global.platId+'&pltid='+global.platTypeId) | ||
65 | + } | ||
66 | + var url=frame?("./iframe?url="+node.url.substr(9)):node.url; | ||
67 | + return url; | ||
68 | + } | ||
69 | + }, | ||
70 | + getSelectedPanel:function(){ | ||
71 | + /*得到选中面板*/ | ||
72 | + return this.tabs.tabs("getSelected"); | ||
73 | + }, | ||
74 | + closeSelectedPanel:function (fn) {/*关闭当前选中tab*/ | ||
75 | + if(fn){ | ||
76 | + fn(); | ||
77 | + } | ||
78 | + var selectedTab =this.tabs.tabs('getSelected'); | ||
79 | + var options=selectedTab.panel("options"); | ||
80 | + var index = this.tabs.tabs("getTabIndex", selectedTab); | ||
81 | + this.tabs.tabs("close", index); | ||
82 | + if(options.callback){ | ||
83 | + options.callback.call(this); | ||
84 | + } | ||
85 | + }, | ||
86 | + panelRefresh:function(){ | ||
87 | + this.getSelectedPanel().panel("refresh"); | ||
88 | + } | ||
89 | + }); | ||
90 | + | ||
91 | + function initTabs(inst){ | ||
92 | + inst.tabs.tabs({ | ||
93 | + fit : true, | ||
94 | + border : false, | ||
95 | + plain:true, | ||
96 | +// tabHeight:22, | ||
97 | + tabWidth:150, | ||
98 | + onBeforeClose: function(title,index){ | ||
99 | + var tab=inst.tabs.tabs("getTab",index); | ||
100 | +// var editors=tab.find(".ckeditor"); | ||
101 | +// for (var i = 0; i < editors.length; i++) { | ||
102 | +// var editor = $(editors[i]); | ||
103 | +// | ||
104 | +// } | ||
105 | + return true; | ||
106 | + }, | ||
107 | + onAdd:function(title,index){ | ||
108 | + $(this).tabs('getTab',index).addClass('rs-box'); | ||
109 | + } | ||
110 | + }).tabs("add", { | ||
111 | + title : '首页', | ||
112 | + href : './home' | ||
113 | + }); | ||
114 | + } | ||
115 | + /*事件绑定-设置菜单高度*/ | ||
116 | + function layoutResize(inst){ | ||
117 | + inst.layout.bind("_resize.menu",function(){ | ||
118 | + inst.layout.children(".rs-menu").height(inst.west.height()); | ||
119 | + }); | ||
120 | + } | ||
121 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +define(['cls','base/index','index/west'],function(Class,base,West){ | ||
2 | + return Class(West,{ | ||
3 | + variable:function(){ | ||
4 | + this.log("north variable"); | ||
5 | + //this.superClass.variable(); | ||
6 | + this.menuSearch=this.north.find(".menu-search input"); | ||
7 | + this.userMore=this.north.find(".more"); | ||
8 | + this.userWindow=$(document.body).children(".rs-user"); | ||
9 | + }, | ||
10 | + initialize:function(){ | ||
11 | + this.log("north initialize"); | ||
12 | + //this.superClass.initialize(); | ||
13 | + initMenuSearch(this); | ||
14 | + initUserWindow(this); | ||
15 | + }, | ||
16 | + handler:function(){ | ||
17 | + this.log("north handler"); | ||
18 | + //this.superClass.handler(); | ||
19 | + userMoreHandler(this); | ||
20 | + } | ||
21 | + }); | ||
22 | + | ||
23 | + //菜单搜索 | ||
24 | + function initMenuSearch(inst){ | ||
25 | + inst.menuSearch.combobox({ | ||
26 | + prompt:inst.resource.menuSearch, | ||
27 | + valueField:'id', | ||
28 | + textField: 'text', | ||
29 | + editable:true, | ||
30 | + panelWidth:260, | ||
31 | + panelHeight:'auto', | ||
32 | + panelMaxHeight:200, | ||
33 | + hasDownArrow:false, | ||
34 | + url:'./menu/select/search.json', | ||
35 | + loadFilter: $.loadFilter, | ||
36 | + filter: searchFilter, | ||
37 | + formatter: searchFormatter, | ||
38 | + onHidePanel:function(){ | ||
39 | + this.menuLoad() | ||
40 | + searchHidePanel.call(this,inst); | ||
41 | + } | ||
42 | + }); | ||
43 | + inst.menuSearch.combo('panel').parent().addClass("menu-search-combo"); | ||
44 | + inst.menuSearch.parent().find(".textbox-text").bind("focus.menuSearch",function(){ | ||
45 | + $(this).select(); | ||
46 | + }); | ||
47 | + } | ||
48 | + // | ||
49 | + function initUserWindow(inst){ | ||
50 | + inst.userWindow.window({ | ||
51 | + title:'用户信息' | ||
52 | + }).tabs({ | ||
53 | + fit:true, | ||
54 | + tabPosition:'left' | ||
55 | + }); | ||
56 | + var pwdPanel=inst.userWindow.tabs("getTab",0) | ||
57 | + inst.userWindow.tabs('update', { | ||
58 | + tab: pwdPanel, | ||
59 | + options: { | ||
60 | + title: '密码修改' | ||
61 | + } | ||
62 | + }); | ||
63 | + var pwdForm=pwdPanel.find("form.password"); | ||
64 | + var lblOldPwd=pwdForm.find("div.oldpwd"); | ||
65 | + var txtOldPwd=pwdForm.find("input.oldpwd").textbox({ | ||
66 | + required:true, | ||
67 | + invalidMessage:'请输入旧密码', | ||
68 | + type:'password' | ||
69 | + }); | ||
70 | + var lblNewPwd=pwdForm.find("div.newpwd"); | ||
71 | + var txtNewPwd=pwdForm.find("input.newpwd").textbox({ | ||
72 | + required:true, | ||
73 | + invalidMessage:'请输入新密码', | ||
74 | + type:'password' | ||
75 | + }); | ||
76 | + var lblRepPwd=pwdForm.find("div.repeatpwd"); | ||
77 | + var txtRepPwd=pwdForm.find("input.repeatpwd").textbox({ | ||
78 | + required:true, | ||
79 | + invalidMessage:'请输入重复密码', | ||
80 | + type:'password' | ||
81 | + }); | ||
82 | + var btnConfirm=pwdForm.find(".confirm"); | ||
83 | + btnConfirm.bind("click.password",function(){ | ||
84 | + var oldpwd=$.trim(txtOldPwd.textbox("getValue")); | ||
85 | + var newpwd=$.trim(txtNewPwd.textbox("getValue")); | ||
86 | + var reppwd=$.trim(txtRepPwd.textbox("getValue")); | ||
87 | + if(oldpwd==newpwd){ //cn.runsa.password.newPwdNotMatch | ||
88 | + $.messager.alert(base.resource.msg_title,base.resource.cn_runsa_password.newPwdNotMatch); | ||
89 | + return; | ||
90 | + } | ||
91 | + if(reppwd!=newpwd){//cn.runsa.password.repeatPwdNotMatch | ||
92 | + $.messager.alert(base.resource.msg_title,base.resource.cn_runsa_password.repeatPwdNotMatch); | ||
93 | + return; | ||
94 | + } | ||
95 | + if(newpwd.length<8){//cn.runsa.password.newpwdLenthError | ||
96 | + $.messager.alert(base.resource.msg_title,base.resource.cn_runsa_password.newpwdLenthError); | ||
97 | + return; | ||
98 | + } | ||
99 | + if(pwdForm.form("validate")){ | ||
100 | + $.messager.progress(); | ||
101 | + var data={ | ||
102 | + oldPwd:oldpwd, | ||
103 | + newPwd:newpwd, | ||
104 | + repPwd:reppwd | ||
105 | + }; | ||
106 | + $.post("./users/password/update.json",data,function(json){ | ||
107 | + $.messager.progress('close'); | ||
108 | + if(responseUtils(json)){ | ||
109 | + $.messager.alert(base.resource.msg_title,'密码已修改,请重新登录.','info',function(){ | ||
110 | + window.location.href="./logout"; | ||
111 | + }); | ||
112 | + } | ||
113 | + }); | ||
114 | + } | ||
115 | + }); | ||
116 | + inst.userWindow.width(inst.userWindow.width()+1); | ||
117 | + } | ||
118 | + function userMoreHandler(inst){ | ||
119 | + inst.userMore.bind("click.user",function(){ | ||
120 | + inst.userWindow.show().window("center").window("open"); | ||
121 | + }); | ||
122 | + } | ||
123 | + function searchFilter(q, row){ | ||
124 | + var opts = $(this).combobox('options'); | ||
125 | + //添加判断子菜单是否匹配 | ||
126 | + var isFind=row[opts.textField].indexOf(q) >= 0; | ||
127 | + if(!isFind){ | ||
128 | + for (var i = 0; i < row.child.length; i++) { | ||
129 | + if(row.child[i].indexOf(q) >= 0){ | ||
130 | + isFind=true; | ||
131 | + break; | ||
132 | + } | ||
133 | + } | ||
134 | + } | ||
135 | + return isFind; | ||
136 | + } | ||
137 | + function searchFormatter(row){ | ||
138 | + var opts = $(this).combobox('options'); | ||
139 | + //生成子菜单内容 | ||
140 | + row.child=[]; | ||
141 | + var html=row[opts.textField]; | ||
142 | + appendChild(row.children,1); | ||
143 | + return html; | ||
144 | + function appendChild(items,c){ | ||
145 | + if(items){ | ||
146 | + var t=c+1; | ||
147 | + for (var i = 0; i < items.length; i++) { | ||
148 | + if(items[i]&&items[i].text){ | ||
149 | + row.child.push(items[i].text); | ||
150 | + html+=('<div class="nav-select">'+appendSpace(c)+items[i].text+'</div>'); | ||
151 | + appendChild(items[i].children,t); | ||
152 | + } | ||
153 | + } | ||
154 | + } | ||
155 | + } | ||
156 | + function appendSpace(c){ | ||
157 | + var space=""; | ||
158 | + for (var i = 0; i < c; i++) { | ||
159 | + space+=("<i class='out'></i>"); | ||
160 | + } | ||
161 | + return space; | ||
162 | + } | ||
163 | + } | ||
164 | + function searchHidePanel(inst){ | ||
165 | + var t=$(this).combobox("getValue"); | ||
166 | + if(t){ | ||
167 | + data=$(this).combobox("getData"); | ||
168 | + if(data){ | ||
169 | + for (var i = 0; i < data.length; i++) { | ||
170 | + if(data[i]&&data[i].id==t&&data[i].url){ | ||
171 | + inst.showPanel({text:formatMenuName(data[i].text),url:data[i].url}); | ||
172 | + break; | ||
173 | + } | ||
174 | + } | ||
175 | + } | ||
176 | + } | ||
177 | + function formatMenuName(name){ | ||
178 | + var i=name.lastIndexOf("("); | ||
179 | + return i>0?name.substring(0,i):name; | ||
180 | + } | ||
181 | + } | ||
182 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +define(['base/index','cls','index/layout'],function(base,Class,Layout){ | ||
2 | + return Class(Layout,{ | ||
3 | + animateSpeed:500, | ||
4 | + variable:function(){ | ||
5 | + this.log("west variable"); | ||
6 | + this.menu=this.layout.children(".rs-menu"); | ||
7 | + this.btnMenu=this.west.find(".btn-menu"); | ||
8 | + this.btnHome=this.west.find(".btn-crm"); | ||
9 | + this.btnExit=this.west.find(".btn-exit"); | ||
10 | + }, | ||
11 | + initialize:function(){ | ||
12 | + this.log("west initialize"); | ||
13 | + this.menuLoad('./menu/select.json'); | ||
14 | + }, | ||
15 | + handler:function(){ | ||
16 | + this.log("west handler"); | ||
17 | + btnMenuHandler(this); | ||
18 | + globalMenuShrink(this); | ||
19 | + btnHomeHandler(this); | ||
20 | + btnExitHandler(this); | ||
21 | + }, | ||
22 | + menuLoad:function(url){ | ||
23 | + loadMenuTree(this,url); | ||
24 | + }, | ||
25 | + menuReload:function(id){ | ||
26 | + var roots=this.menu.tree("getRoots"); | ||
27 | + for (var i =(roots.length-1); i >=0 ; i--) { | ||
28 | + this.menu.tree("remove",roots[i].target); | ||
29 | + } | ||
30 | + this.menuLoad('./menu/select.json?parent='+id); | ||
31 | + }, | ||
32 | + menuShrink:function(){ | ||
33 | + this.btnMenu.removeClass("shrink"); | ||
34 | + this.menu.animate({ | ||
35 | + left:-this.menu.width()+this.west.width() | ||
36 | + }, this.animateSpeed); | ||
37 | + }, | ||
38 | + menuExpand:function(id){ | ||
39 | + expand(this); | ||
40 | + function expand(inst){ | ||
41 | + inst.btnMenu.addClass("shrink"); | ||
42 | + inst.menu.animate({ | ||
43 | + left:inst.west.width() | ||
44 | + }, inst.animateSpeed,function(){ | ||
45 | + if(id){ | ||
46 | + inst.menuReload(id); | ||
47 | + } | ||
48 | + }); | ||
49 | + } | ||
50 | + } | ||
51 | + }); | ||
52 | + function loadMenuTree(inst,url){ | ||
53 | + if(inst.menu.hasClass("tree")){ | ||
54 | + inst.menu.tree("options").url=url; | ||
55 | + inst.menu.tree("reload"); | ||
56 | + }else{ | ||
57 | + inst.menu.tree({ | ||
58 | + url:url, | ||
59 | + lines:false, | ||
60 | + checkbox:false, | ||
61 | + onBeforeLoad:function(node, param){ | ||
62 | + if($(this).hasClass('rs-load')){ | ||
63 | + $(this).rs_load("show"); | ||
64 | + } | ||
65 | + }, | ||
66 | + onLoadSuccess:function(node, data){ | ||
67 | + $(this).rs_load("hide"); | ||
68 | + }, | ||
69 | + onClick: function(node){ | ||
70 | + if(node.state=="open"){ | ||
71 | + $(this).tree("collapse",node.target); | ||
72 | + }else{ | ||
73 | + $(this).tree("expand",node.target); | ||
74 | + inst.showPanel(node); | ||
75 | + } | ||
76 | + if(node.url&&node.url!=""){ | ||
77 | + inst.menuShrink(); | ||
78 | + } | ||
79 | + }, | ||
80 | + onSelect : function(node){ | ||
81 | + inst.showPanel(node); | ||
82 | + } | ||
83 | + }).rs_load().css({ | ||
84 | + height:inst.west.height(), | ||
85 | + top:inst.north.height() | ||
86 | + }); | ||
87 | + } | ||
88 | + } | ||
89 | + function btnMenuHandler(inst){ | ||
90 | + inst.btnMenu.bind("click.menu",function(){ | ||
91 | + if(inst.btnMenu.hasClass("shrink")){ | ||
92 | + inst.menuShrink(); | ||
93 | + }else{ | ||
94 | + inst.menuExpand(); | ||
95 | + } | ||
96 | + }); | ||
97 | +// inst.menu.bind("mouseleave.menu",function(){ | ||
98 | +// inst.menuShrink(); | ||
99 | +// }); | ||
100 | + } | ||
101 | + function globalMenuShrink(inst){ | ||
102 | + $(window).bind("click.menu",function(e){ //收菜单 | ||
103 | + var obj=$(e.target); | ||
104 | +// if(obj.closest(".pl-home-page")){ // | ||
105 | +// return; | ||
106 | +// } | ||
107 | + var m=obj.closest(".rs-menu,.pl-home-module"); | ||
108 | + if(!obj.hasClass("btn-menu")&&m&&m.length==0){ | ||
109 | + inst.menuShrink(); | ||
110 | + } | ||
111 | + }); | ||
112 | + } | ||
113 | + function btnHomeHandler(inst){ | ||
114 | + inst.btnHome.bind("click.home",function(){ | ||
115 | + inst.tabs.tabs("select",0); | ||
116 | + }); | ||
117 | + } | ||
118 | + function btnExitHandler(inst){ | ||
119 | + inst.btnExit.bind("click.exit",function(){ | ||
120 | + $.messager.confirm(base.resource.msg_title, base.resource.onExit,function(r){ | ||
121 | + if (r){ | ||
122 | + window.location.href="./logout"; | ||
123 | + } | ||
124 | + }); | ||
125 | + }); | ||
126 | + } | ||
127 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +requirejs.config({ | ||
2 | + baseUrl: 'js/views', | ||
3 | + paths: { | ||
4 | + jquery: '../jquery.min', | ||
5 | + css: '../require.css.min', | ||
6 | + i18n: '../require.i18n', | ||
7 | + json2: '../json2', | ||
8 | + cls: '../plugin/rs.class', | ||
9 | + rs_load: '../plugin/rs.load', | ||
10 | + rs_toolbar: '../plugin/rs.toolbar', | ||
11 | + rs_condfield: '../../query/js/plugin/rs.condfield', | ||
12 | + rs_condition: '../../query/js/plugin/rs.condition', | ||
13 | + rs_condobject: '../../query/js/plugin/rs.condobject', | ||
14 | + rs_treeobject: '../../query/js/plugin/rs.treeobject', | ||
15 | + rs_condfield_ext: '../../query/js/plugin/rs.condfield.ext', | ||
16 | + cookie: '../third/jquery/jquery.cookie', | ||
17 | + easyui: '../third/easyui/jquery.easyui.min', | ||
18 | + 'easyui_zh-CN': '../third/easyui/locale/easyui-lang-zh_CN', | ||
19 | + moment:'../third/moment/moment.min', | ||
20 | + lodash:'../third/lodash/lodash.min', | ||
21 | + qrcode: '../third/easyui/jquery.qrcode', | ||
22 | + jspdf: '../third/pdf/jspdf.min', | ||
23 | + echarts: '../third/echarts/echarts-all', | ||
24 | + ckeditor: '../third/ckeditor/ckeditor', | ||
25 | + uploadify: '../third/uploadify/jquery.uploadify.min', | ||
26 | + qiniu: '../third/qiniu/qiniu.min', | ||
27 | + plupload: '../third/plupload/plupload.full.min' | ||
28 | + }, | ||
29 | + shim: { | ||
30 | + easyui: ['jquery'], | ||
31 | + 'easyui_zh-CN': ['easyui'], | ||
32 | + rs_condfield: ['easyui'], | ||
33 | + rs_condfield_ext: ['rs_condfield'], | ||
34 | + rs_condition: ['rs_condfield_ext'], | ||
35 | + rs_condobject: ['rs_condition'], | ||
36 | + rs_treeobject: ['easyui'], | ||
37 | + uploadify: ['jquery'], | ||
38 | + ckeditor: ['css!../third/ckeditor/skins/moono/editor.css'] | ||
39 | + }, | ||
40 | + map: { | ||
41 | + '*': { | ||
42 | + easyui_locale: 'easyui_zh-CN' | ||
43 | + } | ||
44 | + }, | ||
45 | + config: { | ||
46 | + i18n: { | ||
47 | + locale: 'zh-CN' | ||
48 | + } | ||
49 | + }, | ||
50 | + waitSeconds: 15 | ||
51 | +}); | ||
52 | +requirejs(['index/index']); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | define(['i18n!role/nls/resource', 'cls', 'base/index', 'index/index'], function (resource, Class, base, index) { | 1 | define(['i18n!role/nls/resource', 'cls', 'base/index', 'index/index'], function (resource, Class, base, index) { |
2 | return Class({ | 2 | return Class({ |
3 | resource: resource, | 3 | resource: resource, |
4 | - variable: function () { | 4 | + variable: function (a,b) { |
5 | + alert(a); | ||
5 | var panel = index.getSelectedPanel(); | 6 | var panel = index.getSelectedPanel(); |
6 | this.page = panel.children('.pl-role-page').layout({fit: true}); | 7 | this.page = panel.children('.pl-role-page').layout({fit: true}); |
7 | this.north = this.page.layout("panel", "north"); | 8 | this.north = this.page.layout("panel", "north"); | ... | ... |
1 | +define({ | ||
2 | + root: { | ||
3 | + selectAll: '全选', | ||
4 | + unSelect: '反选', | ||
5 | + detailsDialogTitle: '请选择适用平台类型', | ||
6 | + title: '操作角色', | ||
7 | + code: '编号', | ||
8 | + name: '名称', | ||
9 | + desc: '描述', | ||
10 | + platName: '创建平台', | ||
11 | + pltName: '平台类型', | ||
12 | + valid: '可用', | ||
13 | + noSelect: '请选择操作角色.', | ||
14 | + onDelete: '您确定要删除当前操作角色?', | ||
15 | + detailsTitle: '操作角色详情', | ||
16 | + permTitle: '操作角色权限', | ||
17 | + sensTitle: '敏感字段权限', | ||
18 | + nameEmpty: '角色名称不能为空', | ||
19 | + codeEmpty: '角色编号不能为空', | ||
20 | + form: { | ||
21 | + code: '编号', | ||
22 | + name: '名称', | ||
23 | + valid: '可用', | ||
24 | + desc: '描述', | ||
25 | + platType: '适用平台类型', | ||
26 | + platform: '创建平台', | ||
27 | + type: '角色类型', | ||
28 | + system: '系统保留', | ||
29 | + custom: '自定义' | ||
30 | + }, | ||
31 | + permGrid: { | ||
32 | + name: '子系统/模块/子模块/菜单/子菜单', | ||
33 | + actions: '操作权限' | ||
34 | + }, | ||
35 | + sesnGrid: { | ||
36 | + tableName: '表名', | ||
37 | + name: '名称', | ||
38 | + perm: '权限' | ||
39 | + } | ||
40 | + }, | ||
41 | + "en-US": true, | ||
42 | + "en-US-paris": true | ||
43 | +}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment