mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 11:22:10 +00:00
fix save on non-codemirror-editor-pages
This commit is contained in:
parent
1ac0fc0008
commit
c44dba20f1
2
assets/css/main.min.css
vendored
2
assets/css/main.min.css
vendored
File diff suppressed because one or more lines are too long
2
assets/js/app.min.js
vendored
2
assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@ -211,7 +211,7 @@ $(document).on('ready pjax:success', function() {
|
||||
$('.CodeMirror').fadeIn();
|
||||
|
||||
// Save editor values
|
||||
if (typeof editor !== 'undefined') {
|
||||
if (typeof editor !== 'undefined' && editor) {
|
||||
editor.save();
|
||||
}
|
||||
|
||||
@ -252,7 +252,6 @@ $(document).on('ready pjax:success', function() {
|
||||
event.preventDefault();
|
||||
|
||||
if ($("#new-admin-item-123").length) {
|
||||
console.log("oi")
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -408,4 +407,4 @@ $(document).on('ready pjax:success', function() {
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user