|
|
@ -589,6 +589,7 @@ define([
|
|
|
|
$(function() {
|
|
|
|
$(function() {
|
|
|
|
// Race condition : if document.body is undefined when alertify.js is loaded, Alertify
|
|
|
|
// Race condition : if document.body is undefined when alertify.js is loaded, Alertify
|
|
|
|
// won't work. We have to reset it now to make sure it uses a correct "body"
|
|
|
|
// won't work. We have to reset it now to make sure it uses a correct "body"
|
|
|
|
|
|
|
|
|
|
|
|
Alertify.reset();
|
|
|
|
Alertify.reset();
|
|
|
|
if($('#pad-iframe').length) {
|
|
|
|
if($('#pad-iframe').length) {
|
|
|
|
var $iframe = $('#pad-iframe');
|
|
|
|
var $iframe = $('#pad-iframe');
|
|
|
@ -875,6 +876,7 @@ define([
|
|
|
|
var styleAlerts = common.styleAlerts = function (href) {
|
|
|
|
var styleAlerts = common.styleAlerts = function (href) {
|
|
|
|
var $link = $('link[href="/customize/alertify.css"]');
|
|
|
|
var $link = $('link[href="/customize/alertify.css"]');
|
|
|
|
if ($link.length) {
|
|
|
|
if ($link.length) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
$link.attr('href', '');
|
|
|
|
$link.attr('href', '');
|
|
|
|
$link.attr('href', '/customize/alertify.css');
|
|
|
|
$link.attr('href', '/customize/alertify.css');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|