diff options
-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'); + } }); }, |