summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-10-21 13:43:39 +0200
committerVincent Petry <pvince81@owncloud.com>2015-10-21 14:16:07 +0200
commitea6917d18a91031fcd83eabf37d5af43864ca733 (patch)
tree52be028b583c083669109bf7e4e82e64a8590848 /apps
parenta399905aff0e23663a4defa512d13e8f51aa9f5f (diff)
downloadnextcloud-server-ea6917d18a91031fcd83eabf37d5af43864ca733.tar.gz
nextcloud-server-ea6917d18a91031fcd83eabf37d5af43864ca733.zip
Do not display details bar after rename
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 340979badac..3973702889b 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -386,12 +386,15 @@
* Update the details view to display the given file
*
* @param {string} fileName file name from the current list
+ * @param {boolean} [show=true] whether to open the sidebar if it was closed
*/
- _updateDetailsView: function(fileName) {
+ _updateDetailsView: function(fileName, show) {
if (!this._detailsView) {
return;
}
+ // show defaults to true
+ show = _.isUndefined(show) || !!show;
var oldFileInfo = this._detailsView.getFileInfo();
if (oldFileInfo) {
// TODO: use more efficient way, maybe track the highlight
@@ -409,7 +412,7 @@
return;
}
- if (this._detailsView.$el.hasClass('disappear')) {
+ if (show && this._detailsView.$el.hasClass('disappear')) {
OC.Apps.showAppSidebar(this._detailsView.$el);
}
@@ -1767,7 +1770,7 @@
tr.remove();
tr = self.add(fileInfo, {updateSummary: false, silent: true});
self.$fileList.trigger($.Event('fileActionsReady', {fileList: self, $files: $(tr)}));
- self._updateDetailsView(fileInfo.name);
+ self._updateDetailsView(fileInfo.name, false);
}
});
} else {