mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Etemplate - if a button has an image but no readonly image set, use the normal image when button is readonly
This commit is contained in:
parent
09e90b1235
commit
b19e71b28d
@ -168,7 +168,7 @@ var et2_button = (function(){ "use strict"; return et2_baseWidget.extend([et2_II
|
||||
if(!this.isInTree() || !this.options.background_image && this.image == null) return;
|
||||
|
||||
if (typeof _image == 'undefined')
|
||||
_image = this.options.readonly ? this.options.ro_image : this.options.image;
|
||||
_image = this.options.readonly ? (this.options.ro_image || this.options.image) : this.options.image;
|
||||
|
||||
// Silently blank for percentages instead of warning about missing image - use a progress widget
|
||||
if(_image.match(/^[0-9]+\%$/))
|
||||
|
Loading…
Reference in New Issue
Block a user