修复validator的语言包BUG

pull/323483/MERGE
Karson 2017-05-15 11:43:01 +08:00
parent 13942c36fa
commit 18eeb825ba
4 changed files with 2164 additions and 13 deletions

File diff suppressed because one or more lines are too long

View File

@ -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;
});

View File

@ -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