|
@@ -48,16 +48,16 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'validator'], f
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
//清除缓存
|
|
//清除缓存
|
|
|
- $(document).on('click', "[data-toggle='wipeCache']", function () {
|
|
|
|
|
|
|
+ $(document).on('click', "[data-toggle='wipecache']", function () {
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
- url: 'ajax/wipeCache',
|
|
|
|
|
|
|
+ url: 'ajax/wipecache',
|
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
|
cache: false,
|
|
cache: false,
|
|
|
success: function (ret) {
|
|
success: function (ret) {
|
|
|
if (ret.code === 1) {
|
|
if (ret.code === 1) {
|
|
|
- Backend.api.toastr.success(ret.msg);
|
|
|
|
|
|
|
+ Backend.api.toastr.success(__('Wipe cache completed'));
|
|
|
} else {
|
|
} else {
|
|
|
- Backend.api.toastr.error('清除系统缓存失败!');
|
|
|
|
|
|
|
+ Backend.api.toastr.error(__('Wipe cache failed'));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|