Change style for buttons with icons to only display image

This commit is contained in:
Nathan Gray
2011-09-22 19:10:21 +00:00
parent 7488843290
commit c631412dfb
2 changed files with 20 additions and 15 deletions

View File

@ -52,7 +52,7 @@ var et2_button = et2_baseWidget.extend([et2_IInput, et2_IDetachedDOM], {
if (!this.options.readonly)
{
this.btn = $j(document.createElement("button"))
.addClass("et2_button");
.addClass("et2_button et2_button_text");
this.setDOMNode(this.btn[0]);
}
},
@ -75,6 +75,7 @@ var et2_button = et2_baseWidget.extend([et2_IInput, et2_IDetachedDOM], {
{
// No label if there's an image
this.options.label = "";
this.btn.removeClass("et2_button_text").addClass("et2_button_icon");
}
},