From 09ac4244cb794f5715a8abf6b017c2ad5f8facf4 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 4 Apr 2012 20:25:20 +0000 Subject: [PATCH] Don't set image title if there's a tooltip, browser may show both --- etemplate/js/et2_widget_button.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_button.js b/etemplate/js/et2_widget_button.js index 15d4e63bb4..615ccabfb3 100644 --- a/etemplate/js/et2_widget_button.js +++ b/etemplate/js/et2_widget_button.js @@ -150,7 +150,12 @@ var et2_button = et2_baseWidget.extend([et2_IInput, et2_IDetachedDOM], { } if(this.image) { - this.image.attr("alt", _value).attr("title",_value); + this.image.attr("alt", _value); + // Don't set title if there's a tooltip, browser may show both + if(!this.options.statustext) + { + this.image.attr("title",_value); + } } },