summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-02-04 11:14:00 +0100
committerVincent Petry <pvince81@owncloud.com>2014-02-04 18:59:43 +0100
commitfe2a63ffd425b354ee1cf6c2faaca19ca71717bb (patch)
treea8f19af3339e79e023841c4b38979554eb746833 /apps
parent49f0f9f2f67c3494628f14c7a5c383596879ec12 (diff)
downloadnextcloud-server-fe2a63ffd425b354ee1cf6c2faaca19ca71717bb.tar.gz
nextcloud-server-fe2a63ffd425b354ee1cf6c2faaca19ca71717bb.zip
Scroll to the top after switching dir
Fixes #7061
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 23b31e72467..027a7bb9477 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -28,7 +28,8 @@ var FileList={
}
FileList.updateFileSummary();
procesSelection();
-
+
+ $(window).scrollTop(0);
$fileList.trigger(jQuery.Event("updated"));
},
createRow:function(type, name, iconurl, linktarget, size, lastModified, permissions) {
@@ -394,7 +395,7 @@ var FileList={
}
return true;
};
-
+
form.submit(function(event) {
event.stopPropagation();
event.preventDefault();
@@ -468,7 +469,7 @@ var 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() ) {
@@ -834,7 +835,7 @@ $(document).ready(function() {
{name: 'requesttoken', value: oc_requesttoken}
];
};
- }
+ }
});
file_upload_start.on('fileuploadadd', function(e, data) {
@@ -873,7 +874,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;