Use framework tooltips for toolbar button tooltips instead of browser titles

Avoids Firefox actually changing the title text sometimes
This commit is contained in:
nathangray 2018-10-04 15:21:03 -06:00
parent d5cf6a600f
commit 590446a701
2 changed files with 3 additions and 2 deletions

View File

@ -493,10 +493,11 @@ var et2_toolbar = (function(){ "use strict"; return et2_DOMWidget.extend([et2_II
var button = jQuery(document.createElement('button'))
.addClass("et2_button et2_button_text et2_button_with_image")
.attr('id', this.id+'-'+action.id)
.attr('title', (action.hint ? action.hint : action.caption) + (action.shortcut ? ' ('+action.shortcut.caption+')' : ''))
.attr('type', 'button')
.appendTo(this.preference[action.id]?this.actionbox.children()[1]:jQuery('[data-group='+action.group+']',this.actionlist));
this.egw().tooltipBind(button, action.hint ? action.hint : action.caption) + (action.shortcut ? ' ('+action.shortcut.caption+')' : '');
if (action && action.checkbox)
{
if (action.data.toggle_on || action.data.toggle_off)

View File

@ -899,7 +899,7 @@ ul.et2_link_string {
background-color: #FDF9DB;
max-width: 300px;
color: black;
z-index: 102;
z-index: 1002;
-webkit-box-shadow: 2px 2px 10px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 2px 2px 10px 0px rgba(0,0,0,0.75);
box-shadow: 2px 2px 10px 0px rgba(0,0,0,0.75);