diff options
author | Sagorika Das <sagorika1996@gmail.com> | 2018-02-21 23:16:27 +0530 |
---|---|---|
committer | Sagorika Das <sagorika1996@gmail.com> | 2018-02-21 23:16:27 +0530 |
commit | dca75448d0a4a58ff4435ed5f15a6d2a0bf81414 (patch) | |
tree | 157a3c5639f3b3b80565277409d78b70044949a8 /apps | |
parent | a966d5256c14a9481dcf4d23c2b0b7466183e8e8 (diff) | |
download | nextcloud-server-dca75448d0a4a58ff4435ed5f15a6d2a0bf81414.tar.gz nextcloud-server-dca75448d0a4a58ff4435ed5f15a6d2a0bf81414.zip |
rename dialog closed when not active
Signed-off-by: Sagorika Das <sagorika1996@gmail.com>
Diffstat (limited to 'apps')
-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 b46db792678..6fa57325bd4 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2379,7 +2379,11 @@ event.preventDefault(); }); input.blur(function() { - form.trigger('submit'); + if(input.hasClass('error')) { + restore(); + } else { + form.trigger('submit'); + } }); }, |