Prevent alertify.js from overriding styles
This commit is contained in:
parent
a2e096b6f3
commit
a57a8e51a1
@ -1,3 +1,11 @@
|
|||||||
|
if (!document.querySelector("#alertifyCSS")) {
|
||||||
|
// Prevent alertify from injecting CSS, we create our own in alertify.less.
|
||||||
|
var head = document.getElementsByTagName("head")[0];
|
||||||
|
var css = document.createElement("span");
|
||||||
|
css.id = "alertifyCSS";
|
||||||
|
css.setAttribute('data-but-why', 'see: common-interface.js');
|
||||||
|
head.insertBefore(css, head.firstChild);
|
||||||
|
}
|
||||||
define([
|
define([
|
||||||
'jquery',
|
'jquery',
|
||||||
'/customize/messages.js',
|
'/customize/messages.js',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user