mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Fallback to className
to support IE9
This commit is contained in:
parent
5b8f293496
commit
94d51064c2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user