mirror of https://gitee.com/karson/fastadmin.git
修复validator的语言包BUG
parent
13942c36fa
commit
18eeb825ba
File diff suppressed because one or more lines are too long
|
|
@ -306,6 +306,16 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], function ($
|
|||
}
|
||||
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暴露到全局中去
|
||||
|
|
@ -318,10 +328,6 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], function ($
|
|||
window.Backend = Backend;
|
||||
//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;
|
||||
});
|
||||
|
|
@ -45,7 +45,7 @@ require.config({
|
|||
'slimscroll': '../libs/jquery-slimscroll/jquery.slimscroll',
|
||||
'crontab': '../libs/jqcron/src/jqCron.cn',
|
||||
'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',
|
||||
'toastr': '../libs/toastr/toastr',
|
||||
'jstree': '../libs/jstree/dist/jstree.min',
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue