Fallback to className to support IE9

This commit is contained in:
Vitor Cortez 2015-10-04 19:49:50 -03:00
parent 5b8f293496
commit 94d51064c2

View File

@ -8,8 +8,7 @@ for (var i = 0; i < btns.length; i++) {
}
function showTooltip(elem, msg) {
elem.classList.add('tooltipped');
elem.classList.add('tooltipped-s');
elem.setAttribute('class', elem.className.indexOf('clip') === -1 ? 'btn tooltipped tooltipped-s': 'btn clip tooltipped tooltipped-s');
elem.setAttribute('aria-label', msg);
}