From fb311f3ebfb032fe8c221120253d03ce60d95030 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 14 Feb 2014 10:47:05 +0000 Subject: [PATCH] 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 --- etemplate/js/et2_widget_button.js | 2 ++ etemplate/templates/default/etemplate2.css | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_button.js b/etemplate/js/et2_widget_button.js index 55b1d8dc98..4e7aeb7a37 100644 --- a/etemplate/js/et2_widget_button.js +++ b/etemplate/js/et2_widget_button.js @@ -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 } }, diff --git a/etemplate/templates/default/etemplate2.css b/etemplate/templates/default/etemplate2.css index 1c6295e023..9f725c9c31 100644 --- a/etemplate/templates/default/etemplate2.css +++ b/etemplate/templates/default/etemplate2.css @@ -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;