Commit d5c41f5a authored by Van's avatar Van

🐛 #12743

parent d354f85e
...@@ -79,7 +79,7 @@ function miniAdmin () { ...@@ -79,7 +79,7 @@ function miniAdmin () {
'./src/main/webapp/js/admin/others.js', './src/main/webapp/js/admin/others.js',
'./src/main/webapp/js/admin/linkList.js', './src/main/webapp/js/admin/linkList.js',
'./src/main/webapp/js/admin/preference.js', './src/main/webapp/js/admin/preference.js',
'./src/main/webapp/js/admin/theme-list.js', './src/main/webapp/js/admin/themeList.js',
'./src/main/webapp/js/admin/pluginList.js', './src/main/webapp/js/admin/pluginList.js',
'./src/main/webapp/js/admin/userList.js', './src/main/webapp/js/admin/userList.js',
'./src/main/webapp/js/admin/categoryList.js', './src/main/webapp/js/admin/categoryList.js',
......
...@@ -233,7 +233,7 @@ $.extend(Admin.prototype, { ...@@ -233,7 +233,7 @@ $.extend(Admin.prototype, {
}, 6000) }, 6000)
$('#loadMsg').text('') $('#loadMsg').text('')
window.onbeforeunload = (event) => { window.onbeforeunload = function (event) {
if (window.location.hash === '#article/article') { if (window.location.hash === '#article/article') {
if (event) { if (event) {
event.returnValue = Label.editorLeaveLabel event.returnValue = Label.editorLeaveLabel
...@@ -244,7 +244,7 @@ $.extend(Admin.prototype, { ...@@ -244,7 +244,7 @@ $.extend(Admin.prototype, {
$(document).ajaxError(function (event, xhr, options, exc) { $(document).ajaxError(function (event, xhr, options, exc) {
if (xhr.status !== 200) { if (xhr.status !== 200) {
$('#tipMsg').text(xhr.status + ': '+ exc) $('#tipMsg').text(xhr.status + ': ' + exc)
} }
}) })
}, },
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment