added a et2_button_ro class to all readonly buttons and remove cursor: pointer from et2_button, as it is set in et2_clickable anyway

This commit is contained in:
Ralf Becker 2014-02-14 10:47:05 +00:00
parent bd7980f0e8
commit fb311f3ebf
2 changed files with 2 additions and 1 deletions

View File

@ -227,6 +227,7 @@ var et2_button = et2_baseWidget.extend([et2_IInput, et2_IDetachedDOM],
{
(this.btn || this.image)
.toggleClass('et2_clickable', !_ro)
.toggleClass('et2_button_ro', _ro)
.css('cursor', _ro ? 'default' : 'pointer'); // temp. 'til it is removed from et2_button
}
}
@ -239,6 +240,7 @@ var et2_button = et2_baseWidget.extend([et2_IInput, et2_IDetachedDOM],
{
(this.btn || this.image)
.removeClass('et2_clickable')
.addClass('et2_button_ro')
.css('cursor', 'default'); // temp. 'til it is removed from et2_button
}
},

View File

@ -161,7 +161,6 @@ a.et2_url.url {
* Button widget - text only, and icon
*/
.et2_button {
cursor: pointer;
text-align: center;
font-size: 9pt;
text-shadow: 1px 1px #E0E0E0;