mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Switched to spaces
This commit is contained in:
@ -2,43 +2,43 @@ var App = App || {};
|
||||
App.Controls = App.Controls || {};
|
||||
|
||||
App.Presenters.ProgressPresenter = function(nprogress) {
|
||||
var nesting = 0;
|
||||
var nesting = 0;
|
||||
|
||||
function start() {
|
||||
nesting ++;
|
||||
function start() {
|
||||
nesting ++;
|
||||
|
||||
if (nesting === 1) {
|
||||
nprogress.start();
|
||||
}
|
||||
}
|
||||
if (nesting === 1) {
|
||||
nprogress.start();
|
||||
}
|
||||
}
|
||||
|
||||
function reset() {
|
||||
nesting = 0;
|
||||
}
|
||||
function reset() {
|
||||
nesting = 0;
|
||||
}
|
||||
|
||||
function done() {
|
||||
if (nesting) {
|
||||
nesting --;
|
||||
}
|
||||
function done() {
|
||||
if (nesting) {
|
||||
nesting --;
|
||||
}
|
||||
|
||||
if (nesting <= 0) {
|
||||
nprogress.done();
|
||||
} else {
|
||||
nprogress.inc();
|
||||
}
|
||||
}
|
||||
if (nesting <= 0) {
|
||||
nprogress.done();
|
||||
} else {
|
||||
nprogress.inc();
|
||||
}
|
||||
}
|
||||
|
||||
window.setInterval(function() {
|
||||
if (nesting <= 0) {
|
||||
nprogress.done();
|
||||
}
|
||||
}, 1000);
|
||||
window.setInterval(function() {
|
||||
if (nesting <= 0) {
|
||||
nprogress.done();
|
||||
}
|
||||
}, 1000);
|
||||
|
||||
return {
|
||||
start: start,
|
||||
done: done,
|
||||
reset: reset,
|
||||
};
|
||||
return {
|
||||
start: start,
|
||||
done: done,
|
||||
reset: reset,
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user