summaryrefslogtreecommitdiffstats
path: root/dist/jquery-impromptu.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/jquery-impromptu.js')
-rw-r--r--dist/jquery-impromptu.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/dist/jquery-impromptu.js b/dist/jquery-impromptu.js
index 6a95201..90d95dd 100644
--- a/dist/jquery-impromptu.js
+++ b/dist/jquery-impromptu.js
@@ -1,4 +1,4 @@
-/*! jQuery-Impromptu - v6.1.1 - 2015-04-19
+/*! jQuery-Impromptu - v6.1.2 - 2015-04-19
* http://trentrichardson.com/Impromptu
* Copyright (c) 2015 Trent Richardson; Licensed MIT */
(function(root, factory) {
@@ -84,6 +84,7 @@
persistent: true,
timeout: 0,
states: {},
+ initialState: 0,
state: {
name: null,
title: '',
@@ -369,8 +370,10 @@
t.jqif[opts.show](opts.overlayspeed);
t.jqi[opts.show](opts.promptspeed, function(){
- var $firstState = t.jqi.find('.'+ opts.prefix +'states .'+ opts.prefix +'state').eq(0);
- t.goToState($firstState.data('jqi-name'));
+ t.goToState(
+ isNaN(opts.initialState) ? opts.initialState :
+ t.jqi.find('.'+ opts.prefix +'states .'+ opts.prefix +'state').eq(opts.initialState).data('jqi-name')
+ );
t.jqib.trigger('impromptu:loaded');
});