Comments (4)
When doing so:
swal({
title: 'Whatever',
text: 'My example text here',
type: 'info',
closeOnConfirm: false,
}, function(){
swal("Success", "Something was successful", "success");
});
After clicking 'OK' the callback modal immediately shows and closes within seconds.
For anyone having this issue, you need to make sure you set closeOnConfirm to false as I've added in the example above.
from bootstrap-sweetalert.
One can workaround this by using a setTimeout to wait for the first one to close but it would be nice if the call was not ignored and was somehow queued until the first one closed.
from bootstrap-sweetalert.
That's a bit confusing on what you are saying here.. an example on JSFiddle or my latest favorite JS Bin would be the best..
from bootstrap-sweetalert.
swal({
title: 'Whatever',
text: 'My example text here',
type: 'info',
closeOnConfirm: false,
}, function(){
window.location.replace("http://example.com");
});
iam run in this type..
its working or nor
from bootstrap-sweetalert.
Related Issues (20)
- Unknown alert type: input
- Text clipping in title HOT 4
- location.reload(true) not working after timer is expired HOT 1
- Callback cancel is missing HOT 1
- Using with select input HOT 1
- swal.queeu Error
- Please help me to slove more question!
- redirect to another page HOT 1
- a third choice option
- Unable to show Alert Message
- Cannot read property 'parentNode' of null
- How to save sweet alert prompt in a js variable HOT 1
- Can you update the sweetalert version? HOT 9
- Error message is showing the default Input box and error message
- ICON COLOR
- Focus on Cancel Button on opening alert
- support of commonjs?
- The sweetalerts are not closing , and giving a TypeError value of undefined?
- Replacing Plain Javascript with better looking SweetAlert in PHP Form
- Prompt w/ Sweet Alert into Variable? 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 bootstrap-sweetalert.