Merge pull request #1030 from coresh/patch-1

Fixes issue of method 'setTooltip'
This commit is contained in:
Дамян Минков 2016-10-18 14:35:53 -05:00 committed by GitHub
commit 5c6f897ce7
1 changed files with 5 additions and 3 deletions

View File

@ -131,10 +131,12 @@ const TOOLTIP_POSITIONS = {
* @param position the position of the tooltip in relation to the element
*/
setTooltip: function (element, key, position) {
if (element !== null) {
element.setAttribute('data-tooltip', TOOLTIP_POSITIONS[position]);
element.setAttribute('data-i18n', '[content]' + key);
APP.translation.translateElement($(element));
}
},
/**