Merge pull request #1200 from mposolda/master

Fix tooltips on FF
This commit is contained in:
Marek Posolda 2015-04-30 11:33:58 +02:00
commit e52e13d611

View file

@ -1571,8 +1571,9 @@ module.directive('kcTooltip', function($compile) {
terminal: true, terminal: true,
priority: 1000, priority: 1000,
link: function link(scope,element, attrs) { link: function link(scope,element, attrs) {
var tooltip = element[0].innerText; var angularElement = angular.element(element[0]);
element[0].innerText = null; var tooltip = angularElement.text();
angularElement.text('');
element.addClass('hidden'); element.addClass('hidden');
var label = angular.element(element.parent().children()[0]); var label = angular.element(element.parent().children()[0]);