summaryrefslogtreecommitdiffstats
path: root/src/jquery-impromptu.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jquery-impromptu.js')
-rw-r--r--src/jquery-impromptu.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jquery-impromptu.js b/src/jquery-impromptu.js
index 6021f97..09f0ffe 100644
--- a/src/jquery-impromptu.js
+++ b/src/jquery-impromptu.js
@@ -71,10 +71,6 @@
}
}
- // Go ahead and transition to the first state. It won't be visible just yet though until we show the prompt
- var $firstState = $.prompt.jqi.find('.'+ opts.prefix +'states .'+ opts.prefix +'state').eq(0);
- $.prompt.goToState($firstState.data('jqi-name'));
-
//Events
$.prompt.jqi.on('click', '.'+ opts.prefix +'buttons button', function(e){
var $t = $(this),
@@ -195,6 +191,10 @@
// Show it
$.prompt.jqif[opts.show](opts.overlayspeed);
$.prompt.jqi[opts.show](opts.promptspeed, function(){
+
+ var $firstState = $.prompt.jqi.find('.'+ opts.prefix +'states .'+ opts.prefix +'state').eq(0);
+ $.prompt.goToState($firstState.data('jqi-name'));
+
$.prompt.jqib.trigger('impromptu:loaded');
});