|
Lines 181-186
Link Here
|
| 181 |
menuItem.set('disabled', disabled); |
181 |
menuItem.set('disabled', disabled); |
| 182 |
menuItem.set('label', label); |
182 |
menuItem.set('label', label); |
| 183 |
menuItem.set('iconClass', iconClass); |
183 |
menuItem.set('iconClass', iconClass); |
|
|
184 |
if (item.is_link && action.name === 'open'){ |
| 185 |
domStyle.set(menuItem.domNode, "display", "none"); |
| 186 |
} else { |
| 187 |
domStyle.set(menuItem.domNode, "display", ""); |
| 188 |
} |
| 184 |
}, this); |
189 |
}, this); |
| 185 |
|
190 |
|
| 186 |
domClass.add(node, 'umcGalleryItemActive'); |
191 |
domClass.add(node, 'umcGalleryItemActive'); |
|
Lines 415-428
Link Here
|
| 415 |
var div = put(wrapperDiv, lang.replace('div.umcGalleryItem', item)); |
420 |
var div = put(wrapperDiv, lang.replace('div.umcGalleryItem', item)); |
| 416 |
var description = this.getItemDescription(item); |
421 |
var description = this.getItemDescription(item); |
| 417 |
var iconClass = this.getIconClass(item); |
422 |
var iconClass = this.getIconClass(item); |
|
|
423 |
if (this._contextMenu) { |
| 424 |
put(div, 'div.umcGalleryContextIcon'); |
| 425 |
} |
| 426 |
if (item.is_link) { |
| 427 |
div = put(div, lang.replace('a[href="{link}"][target="_blank"]', {link: item.url})); |
| 428 |
} |
| 418 |
if (iconClass) { |
429 |
if (iconClass) { |
| 419 |
put(div, 'div.umcGalleryIcon.' + iconClass); |
430 |
put(div, 'div.umcGalleryIcon.' + iconClass); |
| 420 |
} |
431 |
} |
| 421 |
put(div, 'div.umcGalleryName', this.getItemName(item)); |
432 |
put(div, 'div.umcGalleryName', this.getItemName(item)); |
| 422 |
put(div, 'div.umcGalleryDescription', description); |
433 |
put(div, 'div.umcGalleryDescription', description); |
| 423 |
if (this._contextMenu) { |
|
|
| 424 |
put(div, 'div.umcGalleryContextIcon'); |
| 425 |
} |
| 426 |
|
434 |
|
| 427 |
// create status icon |
435 |
// create status icon |
| 428 |
var statusIconClass = this.getStatusIconClass(item); |
436 |
var statusIconClass = this.getStatusIconClass(item); |