diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-02-26 21:36:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-26 21:36:39 +0100 |
commit | 350b66b73d5d6fbd90e996699f5f601afda93d71 (patch) | |
tree | 3bdd87f746b6c9d6dcd276d2fd713cf65bdcd97c | |
parent | abb0a08ed5a7a272c4e064bf110d6aa8485bfe69 (diff) | |
parent | dca75448d0a4a58ff4435ed5f15a6d2a0bf81414 (diff) | |
download | nextcloud-server-350b66b73d5d6fbd90e996699f5f601afda93d71.tar.gz nextcloud-server-350b66b73d5d6fbd90e996699f5f601afda93d71.zip |
Merge pull request #8485 from sagorika1996/rename
Rename dialog closed when not active
-rw-r--r-- | apps/files/js/filelist.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 4dc8a58e175..e1a0491cdc8 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2380,7 +2380,11 @@ event.preventDefault(); }); input.blur(function() { - form.trigger('submit'); + if(input.hasClass('error')) { + restore(); + } else { + form.trigger('submit'); + } }); }, |