Move asynctask/asyncdownload to base

This commit is contained in:
Raphael Michel
2017-02-06 22:15:23 +01:00
parent eb4ba70be8
commit b7df5eff19
6 changed files with 40 additions and 29 deletions

View File

@@ -78,29 +78,3 @@ function copy_answers(idx) {
}
});
}
var waitingDialog = {
show: function (message) {
"use strict";
$("#loadingmodal").find("h1").html(message);
$("body").addClass("loading");
},
hide: function () {
"use strict";
$("body").removeClass("loading");
}
};
var ajaxErrDialog = {
show: function (c) {
"use strict";
$("#ajaxerr").html(c);
$("#ajaxerr .links").html("<a class='btn btn-default ajaxerr-close'>"
+ gettext("Close message") + "</a>");
$("body").addClass("ajaxerr");
},
hide: function () {
"use strict";
$("body").removeClass("ajaxerr");
}
};