Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 1871b61

Browse files
committed
Fix #919
1 parent 25adf04 commit 1871b61

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/plugins/gui.ajax/res/js/pydio/ui/class.FilesList.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ Class.create("FilesList", SelectableElements, {
11891189
if(this._displayMode == "thumb" || this._displayMode == "detail")
11901190
{
11911191
var adjusted = this.resizeThumbnails();
1192-
if(this.protoMenu) {
1192+
if(this.protoMenu && !this.options.noContextualMenu) {
11931193
this.protoMenu.addElements('#selectable_div-'+this.__currentInstanceIndex);
11941194
this.protoMenu.addElements('#selectable_div-'+this.__currentInstanceIndex + ' > .ajxpNodeProvider');
11951195
}
@@ -1201,7 +1201,7 @@ Class.create("FilesList", SelectableElements, {
12011201
}
12021202
else
12031203
{
1204-
if(this.protoMenu){
1204+
if(this.protoMenu&& !this.options.noContextualMenu){
12051205
this.protoMenu.addElements('#table_rows_container-'+this.__currentInstanceIndex);
12061206
this.protoMenu.addElements('#table_rows_container-'+this.__currentInstanceIndex+ ' > .ajxpNodeProvider');
12071207
}
@@ -1240,7 +1240,7 @@ Class.create("FilesList", SelectableElements, {
12401240

12411241
empty : function(skipFireChange){
12421242
this._previewFactory.clear();
1243-
if(this.protoMenu){
1243+
if(this.protoMenu && !this.options.noContextualMenu){
12441244
if(this._displayMode == "thumb" || this._displayMode == "detail"){
12451245
this.protoMenu.removeElements('#selectable_div-'+this.__currentInstanceIndex + ' > .ajxpNodeProvider');
12461246
this.protoMenu.removeElements('#selectable_div-'+this.__currentInstanceIndex);
@@ -1839,7 +1839,7 @@ Class.create("FilesList", SelectableElements, {
18391839
this,
18401840
'filesList'
18411841
);
1842-
if(this.protoMenu) this.protoMenu.addElements(innerSpan);
1842+
if(this.protoMenu && !this.options.noContextualMenu) this.protoMenu.addElements(innerSpan);
18431843
}
18441844
if(!ajxpNode.isLeaf() && (this.options.droppable === undefined || this.options.droppable === true ))
18451845
{

0 commit comments

Comments
 (0)