diff options
author | Trent Richardson <trentdrichardson@gmail.com> | 2013-12-12 11:31:14 -0500 |
---|---|---|
committer | Trent Richardson <trentdrichardson@gmail.com> | 2013-12-12 11:31:14 -0500 |
commit | 9fbcb5c4ac9251d6f31216ea03bf6e718386f9c2 (patch) | |
tree | 9e53f59febfc591d1a85f61904f280e0469936c9 /src | |
parent | 52189a8ad2e91a70dd2b90b4457f1eed2aa895c4 (diff) | |
download | jQuery-Impromptu-9fbcb5c4ac9251d6f31216ea03bf6e718386f9c2.zip jQuery-Impromptu-9fbcb5c4ac9251d6f31216ea03bf6e718386f9c2.tar.gz jQuery-Impromptu-9fbcb5c4ac9251d6f31216ea03bf6e718386f9c2.tar.bz2 |
Fixes default button focus on first state when using position
Diffstat (limited to 'src')
-rw-r--r-- | src/jquery-impromptu.js | 8 |
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');
});
|