Merge pull request #5769 from owncloud/files-changedirjsevent

Added JS event for when the user changes the directory
This commit is contained in:
Morris Jobke 2013-11-11 06:22:44 -08:00
commit 43230f11f6
1 changed files with 6 additions and 0 deletions

View File

@ -170,6 +170,12 @@ var FileList={
return;
}
FileList.setCurrentDir(targetDir, changeUrl);
$('#fileList').trigger(
jQuery.Event('changeDirectory', {
dir: targetDir,
previousDir: currentDir
}
));
FileList.reload();
},
linkTo: function(dir) {