mirror of https://gitee.com/karson/fastadmin.git
修复validator的语言包BUG
parent
18eeb825ba
commit
0739f7def1
|
|
@ -308,7 +308,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], function ($
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
init: function () {
|
init: function () {
|
||||||
//后台的公用代码
|
//公共代码
|
||||||
//点击包含.btn-dialog的元素时弹出dialog
|
//点击包含.btn-dialog的元素时弹出dialog
|
||||||
$(document).on('click', '.btn-dialog', function (e) {
|
$(document).on('click', '.btn-dialog', function (e) {
|
||||||
Backend.api.open(Backend.api.fixurl($(this).attr('href')), $(this).attr('title'));
|
Backend.api.open(Backend.api.fixurl($(this).attr('href')), $(this).attr('title'));
|
||||||
|
|
@ -329,5 +329,6 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], function ($
|
||||||
//Toastr定义
|
//Toastr定义
|
||||||
Toastr.options = Backend.config.toastr;
|
Toastr.options = Backend.config.toastr;
|
||||||
|
|
||||||
|
Backend.init();
|
||||||
return Backend;
|
return Backend;
|
||||||
});
|
});
|
||||||
|
|
@ -234,6 +234,10 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], function ($
|
||||||
}
|
}
|
||||||
return val;
|
return val;
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
init: function () {
|
||||||
|
//公共代码
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//将Layer暴露到全局中去
|
//将Layer暴露到全局中去
|
||||||
|
|
@ -246,5 +250,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], function ($
|
||||||
window.Frontend = Frontend;
|
window.Frontend = Frontend;
|
||||||
//Toastr定义
|
//Toastr定义
|
||||||
Toastr.options = Frontend.config.toastr;
|
Toastr.options = Frontend.config.toastr;
|
||||||
|
|
||||||
|
Frontend.init();
|
||||||
return Frontend;
|
return Frontend;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -2222,7 +2222,7 @@ define('backend',['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], f
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
init: function () {
|
init: function () {
|
||||||
//后台的公用代码
|
//公共代码
|
||||||
//点击包含.btn-dialog的元素时弹出dialog
|
//点击包含.btn-dialog的元素时弹出dialog
|
||||||
$(document).on('click', '.btn-dialog', function (e) {
|
$(document).on('click', '.btn-dialog', function (e) {
|
||||||
Backend.api.open(Backend.api.fixurl($(this).attr('href')), $(this).attr('title'));
|
Backend.api.open(Backend.api.fixurl($(this).attr('href')), $(this).attr('title'));
|
||||||
|
|
@ -2243,6 +2243,7 @@ define('backend',['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'], f
|
||||||
//Toastr定义
|
//Toastr定义
|
||||||
Toastr.options = Backend.config.toastr;
|
Toastr.options = Backend.config.toastr;
|
||||||
|
|
||||||
|
Backend.init();
|
||||||
return Backend;
|
return Backend;
|
||||||
});
|
});
|
||||||
//! moment.js
|
//! moment.js
|
||||||
|
|
|
||||||
|
|
@ -2148,6 +2148,10 @@ define('frontend',['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'],
|
||||||
}
|
}
|
||||||
return val;
|
return val;
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
init: function () {
|
||||||
|
//公共代码
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//将Layer暴露到全局中去
|
//将Layer暴露到全局中去
|
||||||
|
|
@ -2160,6 +2164,8 @@ define('frontend',['jquery', 'bootstrap', 'toastr', 'layer', 'lang', 'config'],
|
||||||
window.Frontend = Frontend;
|
window.Frontend = Frontend;
|
||||||
//Toastr定义
|
//Toastr定义
|
||||||
Toastr.options = Frontend.config.toastr;
|
Toastr.options = Frontend.config.toastr;
|
||||||
|
|
||||||
|
Frontend.init();
|
||||||
return Frontend;
|
return Frontend;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue