Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

Commit

Permalink
bug fixes and version upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Gabriel authored and Vincent Gabriel committed Jan 18, 2016
1 parent a8e972a commit b0d1827
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twitter-bootstrap-wizard",
"version": "1.3",
"version": "1.3.2",
"ignore": [
"**/.*",
"examples",
Expand Down
142 changes: 142 additions & 0 deletions examples/basic-visible.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
<!DOCTYPE html>
<html>
<head>
<title>Basic Example</title>
<!-- Bootstrap -->
<link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="../prettify.css" rel="stylesheet">
</head>
<body>
<div class='container'>

<section id="wizard">
<div class="page-header">
<h1>Basic Wizard</h1>
</div>

<div id="rootwizard">
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<ul>
<li><a href="#tab1" data-toggle="tab">First</a></li>
<li><a href="#tab2" data-toggle="tab">Second</a></li>
<li><a href="#tab3" data-toggle="tab">Third</a></li>
<li class="hidden"><a href="#tab8" data-toggle="tab">Hidden</a></li>
<li><a href="#tab4" data-toggle="tab">Fourth</a></li>
<li><a href="#tab5" data-toggle="tab">Fifth</a></li>
<li><a href="#tab6" data-toggle="tab">Sixth</a></li>
<li><a href="#tab7" data-toggle="tab">Seventh</a></li>
</ul>
</div>
</div>
</div>
<div class="tab-content">
<div class="tab-pane" id="tab1">
1
</div>
<div class="tab-pane" id="tab2">
2
</div>
<div class="tab-pane" id="tab3">
3
</div>
<div class="tab-pane" id="tab4">
4
</div>
<div class="tab-pane" id="tab5">
5
</div>
<div class="tab-pane" id="tab6">
6
</div>
<div class="tab-pane" id="tab7">
7
</div>
<div class="tab-pane" id="tab8">
8
</div>
<ul class="pager wizard">
<li class="previous first" style="display:none;"><a href="#">First</a></li>
<li class="previous"><a href="#">Previous</a></li>
<li class="next last" style="display:none;"><a href="#">Last</a></li>
<li class="next"><a href="#">Next</a></li>
</ul>
</div>
</div>

<h3>HTML</h3>
<pre class="prettyprint linenums">
&lt;div id="rootwizard">
&lt;div class="navbar">
&lt;div class="navbar-inner">
&lt;div class="container">
&lt;ul>
&lt;li>&lt;a href="#tab1" data-toggle="tab">First&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab2" data-toggle="tab">Second&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab3" data-toggle="tab">Third&lt;/a>&lt;/li>
&lt;li class="hidden">&lt;a href="#tab8" data-toggle="tab">Hidden&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab4" data-toggle="tab">Forth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab5" data-toggle="tab">Fifth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab6" data-toggle="tab">Sixth&lt;/a>&lt;/li>
&lt;li>&lt;a href="#tab7" data-toggle="tab">Seventh&lt;/a>&lt;/li>
&lt;/ul>
&lt;/div>
&lt;/div>
&lt;/div>
&lt;div class="tab-content">
&lt;div class="tab-pane" id="tab1">
1
&lt;/div>
&lt;div class="tab-pane" id="tab2">
2
&lt;/div>
&lt;div class="tab-pane" id="tab3">
3
&lt;/div>
&lt;div class="tab-pane" id="tab4">
4
&lt;/div>
&lt;div class="tab-pane" id="tab5">
5
&lt;/div>
&lt;div class="tab-pane" id="tab6">
6
&lt;/div>
&lt;div class="tab-pane" id="tab7">
7
&lt;/div>
&lt;div class="tab-pane" id="tab8">
8
&lt;/div>
&lt;ul class="pager wizard">
&lt;li class="previous first" style="display:none;">&lt;a href="#">First&lt;/a>&lt;/li>
&lt;li class="previous">&lt;a href="#">Previous&lt;/a>&lt;/li>
&lt;li class="next last" style="display:none;">&lt;a href="#">Last&lt;/a>&lt;/li>
&lt;li class="next">&lt;a href="#">Next&lt;/a>&lt;/li>
&lt;/ul>
&lt;/div>
&lt;/div>
</pre>

<h3>JS</h3>
<pre class="prettyprint linenums">
$(document).ready(function() {
$('#rootwizard').bootstrapWizard({withVisible: false});
});
</pre>

</section>
</div>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="../bootstrap/js/bootstrap.min.js"></script>
<script src="../jquery.bootstrap.wizard.js"></script>
<script src="../prettify.js"></script>
<script>
$(document).ready(function() {
$('#rootwizard').bootstrapWizard({withVisible: false});
window.prettyPrint && prettyPrint()
});
</script>
</body>
</html>
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ <h2>Examples</h2>
<ul>
<li><a href="examples/basic.html">Basic Usage</a></li>
<li><a href="examples/basic-pills.html">Basic Pills Usage</a></li>
<li><a href="examples/basic-visible.html">Basic withVisible False</a></li>
<li><a href="examples/basic-inverse.html">Basic Inverse Usage</a></li>
<li><a href="examples/basic-tabsleft.html">Basic Tabs Left Usage</a></li>
<li><a href="examples/basic-custombuttons.html">Wizard With Custom Next/Previous Buttons</a></li>
Expand Down
4 changes: 2 additions & 2 deletions jquery.bootstrap.wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var bootstrapWizardCreate = function(element, options) {
if($index > obj.navigationLength()) {
} else {
historyStack.push(formerIndex);
$navigation.find(baseItemSelector + ':' + ($settings.withVisible ? 'visible' : '') + ':eq(' + $index + ') a').tab('show');
$navigation.find(baseItemSelector + ($settings.withVisible ? ':visible' : '') + ':eq(' + $index + ') a').tab('show');
}
};

Expand All @@ -95,7 +95,7 @@ var bootstrapWizardCreate = function(element, options) {
if($index < 0) {
} else {
historyStack.push(formerIndex);
$navigation.find(baseItemSelector + ':' + ($settings.withVisible ? 'visible' : '') + ':eq(' + $index + ') a').tab('show');
$navigation.find(baseItemSelector + ($settings.withVisible ? ':visible' : '') + ':eq(' + $index + ') a').tab('show');
}
};

Expand Down
2 changes: 1 addition & 1 deletion jquery.bootstrap.wizard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0d1827

Please sign in to comment.