summaryrefslogtreecommitdiffstats
path: root/src/jquery-impromptu.js
diff options
context:
space:
mode:
authorTrent Richardson <trentdrichardson@gmail.com>2013-12-30 16:57:16 -0500
committerTrent Richardson <trentdrichardson@gmail.com>2013-12-30 16:57:16 -0500
commitdf79fbccfdcabbe0bccac7e691ea31629569a254 (patch)
treed4dd8b710056e5b68c29948537b4ae8f23ebc2ba /src/jquery-impromptu.js
parentbdb22f5fd085a3240f85ffda98bc9abea272c113 (diff)
downloadjQuery-Impromptu-df79fbccfdcabbe0bccac7e691ea31629569a254.zip
jQuery-Impromptu-df79fbccfdcabbe0bccac7e691ea31629569a254.tar.gz
jQuery-Impromptu-df79fbccfdcabbe0bccac7e691ea31629569a254.tar.bz2
test api, events
Diffstat (limited to 'src/jquery-impromptu.js')
-rw-r--r--src/jquery-impromptu.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/jquery-impromptu.js b/src/jquery-impromptu.js
index f84cc01..6eb10ad 100644
--- a/src/jquery-impromptu.js
+++ b/src/jquery-impromptu.js
@@ -494,9 +494,9 @@
if($state.length === 0){
return false;
}
-
+
// transition away from it before deleting
- if($state.is(':visible')){
+ if($state.css('display') !== 'none'){
if($state.next().length > 0){
$.prompt.nextState(rm);
}
@@ -655,9 +655,8 @@
if($.prompt.jqib){
$.prompt.jqib.fadeOut('fast',function(){
- if(callCallback) {
- $.prompt.jqib.trigger('impromptu:close', [clicked,msg,formvals]);
- }
+ $.prompt.jqib.trigger('impromptu:close', [clicked,msg,formvals]);
+
$.prompt.jqib.remove();
$(window).off('resize',$.prompt.position);