Trim text in subject_text(), so title attribute is displayed without unwanted spacing

Looks like at least Firefox does not trim i automatically.
pull/6040/head
Aleksander Machniak 7 years ago
parent 19ad6b15e8
commit 27377e29dc

@ -9605,7 +9605,7 @@ rcube_webmail.subject_text = function(elem)
{ {
var t = $(elem).clone(); var t = $(elem).clone();
t.find('.skip-on-drag,.skip-content,.voice').remove(); t.find('.skip-on-drag,.skip-content,.voice').remove();
return t.text(); return $.trim(t.text());
}; };
// set event handlers on all iframe elements (and their contents) // set event handlers on all iframe elements (and their contents)

Loading…
Cancel
Save