Преглед на файлове

修复validator的语言包BUG

Karson преди 8 години
родител
ревизия
0739f7def1
променени са 4 файла, в които са добавени 18 реда и са изтрити 4 реда
  1. 3 2
      public/assets/js/backend.js
  2. 6 0
      public/assets/js/frontend.js
  3. 3 2
      public/assets/js/require-backend.min.js
  4. 6 0
      public/assets/js/require-frontend.min.js

+ 3 - 2
public/assets/js/backend.js

@@ -308,7 +308,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], function ($
             });
         },
         init: function () {
-            //后台的公用代码
+            //公共代码
             //点击包含.btn-dialog的元素时弹出dialog
             $(document).on('click', '.btn-dialog', function (e) {
                 Backend.api.open(Backend.api.fixurl($(this).attr('href')), $(this).attr('title'));
@@ -328,6 +328,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], function ($
     window.Backend = Backend;
     //Toastr定义
     Toastr.options = Backend.config.toastr;
-
+    
+    Backend.init();
     return Backend;
 });

+ 6 - 0
public/assets/js/frontend.js

@@ -234,6 +234,10 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], function ($
                 }
                 return val;
             });
+        },
+        init: function () {
+            //公共代码
+            
         }
     };
     //将Layer暴露到全局中去
@@ -246,5 +250,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], function ($
     window.Frontend = Frontend;
     //Toastr定义
     Toastr.options = Frontend.config.toastr;
+    
+    Frontend.init();
     return Frontend;
 });

+ 3 - 2
public/assets/js/require-backend.min.js

@@ -2222,7 +2222,7 @@ define('backend',['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], f
             });
         },
         init: function () {
-            //后台的公用代码
+            //公共代码
             //点击包含.btn-dialog的元素时弹出dialog
             $(document).on('click', '.btn-dialog', function (e) {
                 Backend.api.open(Backend.api.fixurl($(this).attr('href')), $(this).attr('title'));
@@ -2242,7 +2242,8 @@ define('backend',['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], f
     window.Backend = Backend;
     //Toastr定义
     Toastr.options = Backend.config.toastr;
-
+    
+    Backend.init();
     return Backend;
 });
 //! moment.js

+ 6 - 0
public/assets/js/require-frontend.min.js

@@ -2148,6 +2148,10 @@ define('frontend',['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'],
                 }
                 return val;
             });
+        },
+        init: function () {
+            //公共代码
+            
         }
     };
     //将Layer暴露到全局中去
@@ -2160,6 +2164,8 @@ define('frontend',['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'],
     window.Frontend = Frontend;
     //Toastr定义
     Toastr.options = Frontend.config.toastr;
+    
+    Frontend.init();
     return Frontend;
 });