mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
15 lines
242 B
JavaScript
15 lines
242 B
JavaScript
var state = require('./state');
|
|
|
|
function showLoading(p) {
|
|
state.$book.addClass('is-loading');
|
|
p.always(function() {
|
|
state.$book.removeClass('is-loading');
|
|
});
|
|
|
|
return p;
|
|
}
|
|
|
|
module.exports = {
|
|
show: showLoading
|
|
};
|