Skip .skip-on-drag elements when producing long subject title

pull/264/head
Aleksander Machniak 10 years ago
parent c6efcf5e6d
commit 83b5834360

@ -8183,7 +8183,7 @@ rcube_webmail.long_subject_title = function(elem, indent)
if (!elem.title) { if (!elem.title) {
var $elem = $(elem); var $elem = $(elem);
if ($elem.width() + (indent || 0) * 15 > $elem.parent().width()) if ($elem.width() + (indent || 0) * 15 > $elem.parent().width())
elem.title = $elem.text(); elem.title = rcube_webmail.subject_text(elem);
} }
}; };
@ -8200,10 +8200,17 @@ rcube_webmail.long_subject_title_ex = function(elem)
tmp.remove(); tmp.remove();
if (w + $('span.branch', $elem).width() * 15 > $elem.width()) if (w + $('span.branch', $elem).width() * 15 > $elem.width())
elem.title = txt; elem.title = rcube_webmail.subject_text(elem);
} }
}; };
rcube_webmail.subject_text = function(elem)
{
var t = $(elem).clone();
t.find('.skip-on-drag').remove();
return t.text();
};
rcube_webmail.prototype.get_cookie = getCookie; rcube_webmail.prototype.get_cookie = getCookie;
// copy event engine prototype // copy event engine prototype

Loading…
Cancel
Save