IMPR: AJAX loading improvements

This commit is contained in:
Tony Air 2020-08-02 22:38:23 +07:00
parent 8b4ec819a1
commit d87be3790f
7 changed files with 14 additions and 7 deletions

2
dist/css/app.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/js/app.js vendored

File diff suppressed because one or more lines are too long

2
dist/js/app.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate",
"version": "2.3.8",
"version": "2.3.9",
"author": "Tony Air <tony@twma.pro>",
"license": "MIT",
"description": "This UI Kit allows you to build Bootstrap 4 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",

View File

@ -276,11 +276,11 @@ const AjaxUI = (($) => {
pauseAll: () => {
$.xhrPool.paused = true;
for (const url in $.xhrPool.requests) {
/*for (let url in $.xhrPool.requests) {
const jqXHR = $.xhrPool.requests[url];
jqXHR.abort();
console.log(`AJAX request is paused (${jqXHR.opts.url})`);
}
}*/
},
restoreAll: () => {
for (const url in $.xhrPool.requests) {

View File

@ -396,6 +396,13 @@ textarea,
display: block;
}
}
#SiteWideOffline {
position: fixed;
top: 0;
left: 0;
z-index: 99999;
width: 100%;
}
.alert-offline {
display: none;