mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
parent
5a5c6af2c6
commit
5ece4cc0ec
47 changed files with 1333 additions and 539 deletions
|
|
@ -331,12 +331,13 @@ Utils.i18nToNode = function (oElement)
|
|||
{
|
||||
jqThis.attr('placeholder', Utils.i18n(sKey));
|
||||
}
|
||||
|
||||
sKey = jqThis.data('i18n-title');
|
||||
if (sKey)
|
||||
{
|
||||
jqThis.attr('title', Utils.i18n(sKey));
|
||||
}
|
||||
}
|
||||
// sKey = jqThis.data('i18n-title');
|
||||
// if (sKey)
|
||||
// {
|
||||
// jqThis.attr('title', Utils.i18n(sKey));
|
||||
// }
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
@ -1695,3 +1696,23 @@ Utils.computedPagenatorHelper = function (koCurrentPage, koPageCount)
|
|||
return aResult;
|
||||
};
|
||||
};
|
||||
|
||||
Utils.selectElement = function (element)
|
||||
{
|
||||
/* jshint onevar: false */
|
||||
if (window.getSelection)
|
||||
{
|
||||
var sel = window.getSelection();
|
||||
sel.removeAllRanges();
|
||||
var range = document.createRange();
|
||||
range.selectNodeContents(element);
|
||||
sel.addRange(range);
|
||||
}
|
||||
else if (document.selection)
|
||||
{
|
||||
var textRange = document.body.createTextRange();
|
||||
textRange.moveToElementText(element);
|
||||
textRange.select();
|
||||
}
|
||||
/* jshint onevar: true */
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue