Comments (4)
Hi @morzius, thanks for the feedback!
That's a scenario I didn't consider when developing this plugin.
For now, the plugin uses the first call to create the plugin object and store it in the associated DOM (in your case, the body). The subsequent calls use the previously defined overlay and just start it.
For now, you can temporarily fix your problem doing:
$('body').removeData('jquery-loading');
$('body').loading({
...
});
This will remove the previously defined overlay and start it all again.
I will be working on a permanent solution and posting the feedback here. Let me know if you have another problem.
from jquery-loading.
Thank you,
I did something similar
$('body').loading({
...
});
$(".loading-overlay-content").text('...');
from jquery-loading.
I solved it using this:
$.Loading.setDefaults({
onStop: function (loading) {
$(loading.element).removeData('jquery-loading');
}
});
from jquery-loading.
@morzius, @tompazourek. I just fixed the problem on release 1.1.0.
Now subsequent calls to the plugin will override config options.
Please, let me know if you find any problems. Thanks for the feedback!
from jquery-loading.
Related Issues (19)
- Overlay doesn't hide and a second overlay appears over first one HOT 4
- How to destroy plugin instance? HOT 5
- $(...).loading is not a function HOT 7
- there is no destroy method HOT 3
- Does it possible to add a update message function? HOT 3
- Multiple loading with custom overlay HOT 1
- Submit button inside form tag doesnโt work in Safari HOT 2
- critical dependency error on laravel mix HOT 1
- Bad position HOT 4
- Issue using in a Bootstrap modal dialog HOT 3
- Error: Cannot find module '[object Window]' HOT 1
- the file of jquery.loading.min.js contains 'const' symbol
- can't mask all body when work with jeasyui
- Unable to use multiple instances on same element
- z-index 9 is too low HOT 5
- Unable to get the overlay to display HOT 2
- loading('stop') displyaing the loading widget HOT 5
- Nuget package deployment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-loading.