diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-02-05 16:13:55 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-02-05 16:13:55 +0100 |
commit | b0692af29aee6b0e27b6d7caaebbe4e3617e7529 (patch) | |
tree | ff517aef068507c8b590676d01261b7a79aebbfe | |
parent | 697b25f1658627b2704df8a7874164a9cabef01b (diff) | |
parent | fe2a63ffd425b354ee1cf6c2faaca19ca71717bb (diff) | |
download | nextcloud-server-b0692af29aee6b0e27b6d7caaebbe4e3617e7529.tar.gz nextcloud-server-b0692af29aee6b0e27b6d7caaebbe4e3617e7529.zip |
Merge pull request #7064 from owncloud/files-scrolltopafterupdate
Scroll to the top after switching dir
-rw-r--r-- | apps/files/js/filelist.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 81c52e2a863..f538af10362 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -40,7 +40,8 @@ window.FileList={ } FileList.updateFileSummary(); procesSelection(); - + + $(window).scrollTop(0); $fileList.trigger(jQuery.Event("updated")); }, createRow:function(type, name, iconurl, linktarget, size, lastModified, permissions) { @@ -407,7 +408,7 @@ window.FileList={ } return true; }; - + form.submit(function(event) { event.stopPropagation(); event.preventDefault(); @@ -481,7 +482,7 @@ window.FileList={ var basename = newname; if (newname.indexOf('.') > 0 && tr.data('type') !== 'dir') { basename = newname.substr(0, newname.lastIndexOf('.')); - } + } td.find('a.name span.nametext').text(basename); if (newname.indexOf('.') > 0 && tr.data('type') !== 'dir') { if ( ! td.find('a.name span.extension').exists() ) { @@ -886,7 +887,7 @@ $(document).ready(function() { */ file_upload_start.on('fileuploaddone', function(e, data) { OC.Upload.log('filelist handle fileuploaddone', e, data); - + var response; if (typeof data.result === 'string') { response = data.result; |