Browse Source

修复validator的语言包BUG

Karson 8 years ago
parent
commit
18eeb825ba

File diff suppressed because it is too large
+ 1 - 1
public/assets/css/frontend.min.css


+ 11 - 5
public/assets/js/backend.js

@@ -306,6 +306,16 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], function ($
                 }
                 }
                 return val;
                 return val;
             });
             });
+        },
+        init: function () {
+            //后台的公用代码
+            //点击包含.btn-dialog的元素时弹出dialog
+            $(document).on('click', '.btn-dialog', function (e) {
+                Backend.api.open(Backend.api.fixurl($(this).attr('href')), $(this).attr('title'));
+                e.preventDefault();
+            });
+            //支持data-bind-url方式进行渲染select元素
+            
         }
         }
     };
     };
     //将Layer暴露到全局中去
     //将Layer暴露到全局中去
@@ -318,10 +328,6 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], function ($
     window.Backend = Backend;
     window.Backend = Backend;
     //Toastr定义
     //Toastr定义
     Toastr.options = Backend.config.toastr;
     Toastr.options = Backend.config.toastr;
-    //点击包含.btn-dialog的元素时弹出dialog
-    $(document).on('click', '.btn-dialog', function (e) {
-        Backend.api.open(Backend.api.fixurl($(this).attr('href')), $(this).attr('title'));
-        e.preventDefault();
-    });
+
     return Backend;
     return Backend;
 });
 });

+ 1 - 1
public/assets/js/require-backend.js

@@ -45,7 +45,7 @@ require.config({
         'slimscroll': '../libs/jquery-slimscroll/jquery.slimscroll',
         'slimscroll': '../libs/jquery-slimscroll/jquery.slimscroll',
         'crontab': '../libs/jqcron/src/jqCron.cn',
         'crontab': '../libs/jqcron/src/jqCron.cn',
         'summernote': '../libs/summernote/dist/lang/summernote-zh-CN.min',
         'summernote': '../libs/summernote/dist/lang/summernote-zh-CN.min',
-        'validator': '../libs/nice-validator/dist/jquery.validator.js?local=zh-CN',
+        'validator': '../libs/nice-validator/dist/jquery.validator',
         'plupload': '../libs/plupload/js/plupload.min',
         'plupload': '../libs/plupload/js/plupload.min',
         'toastr': '../libs/toastr/toastr',
         'toastr': '../libs/toastr/toastr',
         'jstree': '../libs/jstree/dist/jstree.min',
         'jstree': '../libs/jstree/dist/jstree.min',

File diff suppressed because it is too large
+ 2151 - 6
public/assets/js/require-backend.min.js