From d7375a232197cb3b1baaece9b56bedad0d177aa2 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 19 Aug 2013 20:21:56 +0000 Subject: [PATCH] Add tooltips to popup header buttons --- etemplate/js/et2_widget_selectAccount.js | 2 ++ etemplate/js/et2_widget_selectbox.js | 1 + 2 files changed, 3 insertions(+) diff --git a/etemplate/js/et2_widget_selectAccount.js b/etemplate/js/et2_widget_selectAccount.js index bce9920c87..54803f4b86 100644 --- a/etemplate/js/et2_widget_selectAccount.js +++ b/etemplate/js/et2_widget_selectAccount.js @@ -117,6 +117,7 @@ var et2_selectAccount = et2_selectbox.extend( var button = jQuery(document.createElement("span")) .addClass("et2_clickable") .click(this, this._open_search) + .attr("title", egw.lang("popup with search")) .append(''); this.getSurroundings().insertDOMNode(button[0]); @@ -196,6 +197,7 @@ var et2_selectAccount = et2_selectbox.extend( var button = jQuery(document.createElement("li")) .addClass("et2_clickable") .click(this, this._open_multi_search) + .attr("title", egw.lang("popup with search")) .append('') var type = this.egw().preference('account_selection', 'common'); diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index 8fd29cded2..ce7c05224d 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -388,6 +388,7 @@ var et2_selectbox = et2_inputWidget.extend( jQuery(document.createElement("li")) .addClass("et2_clickable") .click(options, header_controls[key].click) + .attr("title", header_controls[key].label) .append('') .appendTo(controls); }