summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-02-26 21:36:39 +0100
committerGitHub <noreply@github.com>2018-02-26 21:36:39 +0100
commit350b66b73d5d6fbd90e996699f5f601afda93d71 (patch)
tree3bdd87f746b6c9d6dcd276d2fd713cf65bdcd97c /apps
parentabb0a08ed5a7a272c4e064bf110d6aa8485bfe69 (diff)
parentdca75448d0a4a58ff4435ed5f15a6d2a0bf81414 (diff)
downloadnextcloud-server-350b66b73d5d6fbd90e996699f5f601afda93d71.tar.gz
nextcloud-server-350b66b73d5d6fbd90e996699f5f601afda93d71.zip
Merge pull request #8485 from sagorika1996/rename
Rename dialog closed when not active
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js6
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');
+ }
});
},