Elastic: Add title to taskmenu entries with too long labels (#6392)

pull/6454/head
Aleksander Machniak 6 years ago
parent b7d51573e4
commit a8542e9c08

@ -10016,12 +10016,12 @@ function rcube_webmail()
// some static methods
rcube_webmail.long_subject_title = function(elem, indent)
rcube_webmail.long_subject_title = function(elem, indent, text_elem)
{
if (!elem.title) {
var $elem = $(elem);
var $elem = $(text_elem || elem);
if ($elem.width() + (indent || 0) * 15 > $elem.parent().width())
elem.title = rcube_webmail.subject_text(elem);
elem.title = rcube_webmail.subject_text($elem[0]);
}
};

@ -260,6 +260,8 @@ function rcube_elastic_ui()
$(this).addClass('button ' + name);
$('.button-inner', this).addClass('inner');
}
$(this).on('mouseover', function() { rcube_webmail.long_subject_title(this, 0, $('span.inner', this)); });
});
// Some plugins use 'listbubtton' class, we'll replace it with 'button'

Loading…
Cancel
Save