Pendigard's picture
Upload folder using huggingface_hub (part 83)
b3787d8 verified
Raw History Blame Contribute Delete
968 Bytes
/**
* DevExtreme (ui/scheduler/ui.loading.js)
* Version: 16.2.5
* Build date: Mon Feb 27 2017
*
* Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
var $ = require("jquery"),
viewPortUtils = require("../../core/utils/view_port"),
LoadPanel = require("../load_panel");
var loading = null;
var createLoadPanel = function(options) {
return new LoadPanel($("<div>").appendTo(options && options.container || viewPortUtils.value()), options)
};
var removeLoadPanel = function() {
if (!loading) {
return
}
loading.element().remove();
loading = null
};
exports.show = function(options) {
removeLoadPanel();
loading = createLoadPanel(options);
return loading.show()
};
exports.hide = function() {
if (!loading) {
return $.Deferred().resolve()
}
return loading.hide().done(removeLoadPanel).promise()
};