diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-09-04 12:33:38 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-09-04 12:34:17 +0200 |
commit | 6ca9e2743860b56152931c0fb8d96745db51d942 (patch) | |
tree | ed286ca3915f052266a3127d54e741307d10738d /apps/files/js/file-upload.js | |
parent | 9ae000676c812f5c7f583594ff61462fdcebb2eb (diff) | |
download | nextcloud-server-6ca9e2743860b56152931c0fb8d96745db51d942.tar.gz nextcloud-server-6ca9e2743860b56152931c0fb8d96745db51d942.zip |
Scroll to new file/folder after adding
When creating a new file from the menu, the list now scrolls to that
file.
Diffstat (limited to 'apps/files/js/file-upload.js')
-rw-r--r-- | apps/files/js/file-upload.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 310799b9513..460c2435642 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -629,7 +629,7 @@ OC.Upload = { }, function(result) { if (result.status === 'success') { - FileList.add(result.data, {hidden: hidden, animate: true}); + FileList.add(result.data, {hidden: hidden, animate: true, scrollTo: true}); } else { OC.dialogs.alert(result.data.message, t('core', 'Could not create file')); } @@ -645,7 +645,7 @@ OC.Upload = { }, function(result) { if (result.status === 'success') { - FileList.add(result.data, {hidden: hidden, animate: true}); + FileList.add(result.data, {hidden: hidden, animate: true, scrollTo: true}); } else { OC.dialogs.alert(result.data.message, t('core', 'Could not create folder')); } |