22 lines
552 B
JavaScript
22 lines
552 B
JavaScript
define([
|
|
"jquery",
|
|
"underscore",
|
|
"classes/Extension",
|
|
], function($, _, Extension) {
|
|
|
|
var workingIndicator = new Extension("workingIndicator", "Working Indicator");
|
|
|
|
workingIndicator.onAsyncRunning = function(isRunning) {
|
|
if(isRunning === false) {
|
|
$(".working-indicator").removeClass("show");
|
|
$("body").removeClass("working");
|
|
}
|
|
else {
|
|
$(".working-indicator").addClass("show");
|
|
$("body").addClass("working");
|
|
}
|
|
};
|
|
|
|
return workingIndicator;
|
|
|
|
}); |