mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
propagate label to et2-button to show it (use label="" to show just the icon)
This commit is contained in:
parent
6c3df5ad8b
commit
406da0dcec
@ -182,6 +182,7 @@ export class et2_file extends et2_inputWidget
|
|||||||
this.span = jQuery(document.createElement("et2-button"))
|
this.span = jQuery(document.createElement("et2-button"))
|
||||||
.addClass('et2_file_span')
|
.addClass('et2_file_span')
|
||||||
.attr("image", "attach")
|
.attr("image", "attach")
|
||||||
|
.attr('label', this.options.label || '')
|
||||||
.attr("noSubmit", true)
|
.attr("noSubmit", true)
|
||||||
.appendTo(this.node);
|
.appendTo(this.node);
|
||||||
|
|
||||||
@ -767,6 +768,4 @@ export class et2_file extends et2_inputWidget
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
et2_register_widget(et2_file, ["file"]);
|
et2_register_widget(et2_file, ["file"]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user