@@ -1189,7 +1189,7 @@ Class.create("FilesList", SelectableElements, {
1189
1189
if ( this . _displayMode == "thumb" || this . _displayMode == "detail" )
1190
1190
{
1191
1191
var adjusted = this . resizeThumbnails ( ) ;
1192
- if ( this . protoMenu ) {
1192
+ if ( this . protoMenu && ! this . options . noContextualMenu ) {
1193
1193
this . protoMenu . addElements ( '#selectable_div-' + this . __currentInstanceIndex ) ;
1194
1194
this . protoMenu . addElements ( '#selectable_div-' + this . __currentInstanceIndex + ' > .ajxpNodeProvider' ) ;
1195
1195
}
@@ -1201,7 +1201,7 @@ Class.create("FilesList", SelectableElements, {
1201
1201
}
1202
1202
else
1203
1203
{
1204
- if ( this . protoMenu ) {
1204
+ if ( this . protoMenu && ! this . options . noContextualMenu ) {
1205
1205
this . protoMenu . addElements ( '#table_rows_container-' + this . __currentInstanceIndex ) ;
1206
1206
this . protoMenu . addElements ( '#table_rows_container-' + this . __currentInstanceIndex + ' > .ajxpNodeProvider' ) ;
1207
1207
}
@@ -1240,7 +1240,7 @@ Class.create("FilesList", SelectableElements, {
1240
1240
1241
1241
empty : function ( skipFireChange ) {
1242
1242
this . _previewFactory . clear ( ) ;
1243
- if ( this . protoMenu ) {
1243
+ if ( this . protoMenu && ! this . options . noContextualMenu ) {
1244
1244
if ( this . _displayMode == "thumb" || this . _displayMode == "detail" ) {
1245
1245
this . protoMenu . removeElements ( '#selectable_div-' + this . __currentInstanceIndex + ' > .ajxpNodeProvider' ) ;
1246
1246
this . protoMenu . removeElements ( '#selectable_div-' + this . __currentInstanceIndex ) ;
@@ -1839,7 +1839,7 @@ Class.create("FilesList", SelectableElements, {
1839
1839
this ,
1840
1840
'filesList'
1841
1841
) ;
1842
- if ( this . protoMenu ) this . protoMenu . addElements ( innerSpan ) ;
1842
+ if ( this . protoMenu && ! this . options . noContextualMenu ) this . protoMenu . addElements ( innerSpan ) ;
1843
1843
}
1844
1844
if ( ! ajxpNode . isLeaf ( ) && ( this . options . droppable === undefined || this . options . droppable === true ) )
1845
1845
{
0 commit comments