don't create duplicate stylesheets in the document head
parent
fe3f02f5e0
commit
42eafe9e29
www/common
|
@ -216,6 +216,9 @@ define([
|
|||
};
|
||||
|
||||
var styleAlerts = common.styleAlerts = function (href) {
|
||||
var $link = $('link[href="/customize/alertify.css"]');
|
||||
if ($link.length) { return; }
|
||||
|
||||
href = href || '/customize/alertify.css';
|
||||
$('head').append($('<link>', {
|
||||
rel: 'stylesheet',
|
||||
|
|
Loading…
Reference in New Issue