Fix the infinite spinner bug with the file manager store

This commit is contained in:
yflory
2016-12-08 18:52:36 +01:00
parent 43ccd11adc
commit ee56f5608f
7 changed files with 61 additions and 15 deletions

View File

@@ -649,6 +649,19 @@ define([
}, common);
};
var errorHandlers = [];
common.onError = function (h) {
if (typeof h !== "function") { return; }
errorHandlers.push(h);
};
common.storeError = function () {
errorHandlers.forEach(function (h) {
if (typeof h === "function") {
h({type: "store"});
}
});
};
/*
* Saving files
*/
@@ -877,9 +890,9 @@ define([
var $link = $('link[href="/customize/alertify.css"]');
if ($link.length) {
return;
$link.attr('href', '');
/*$link.attr('href', '');
$link.attr('href', '/customize/alertify.css');
return;
return;*/
}
href = href || '/customize/alertify.css';