Fix "TypeError: u.$form is undefined"

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-02-19 11:58:04 +01:00
parent 22e748ed38
commit 4cc017d52e
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
7 changed files with 11 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -318,7 +318,7 @@ const Dialogs = {
self.$filePicker.ocdialog('setEnterCallback', function() {
event.stopImmediatePropagation()
event.preventDefault()
self.$form.submit()
self.$filePicker.submit()
})
var newName = $input.val()
var lastPos = newName.lastIndexOf('.')