Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed default defaultState to be 'closed'

  • Loading branch information...
commit 8600065ed008da435022aa1fcc38e5da312fa8b4 1 parent 6bc95be
@nathanl authored
View
2  README.markdown
@@ -65,7 +65,7 @@ My apologies for any confusion.
</tr>
<tr>
<td>defaultState</td>
- <td>'open'</td>
+ <td>'closed'</td>
<td>'open' <br/> 'closed'</td>
<td>
If no cookie is set, should the panel start out open or
View
8 examples/index.html
@@ -10,8 +10,8 @@
<script type="text/javascript">
$(document).ready(function() {
- // Simplest case
- $('#panel').persistentPanel();
+ // Simple case
+ $('#panel').persistentPanel({defaultState: 'open'});
// With some options
$('#panel2').persistentPanel({
@@ -57,8 +57,8 @@
<h1>Persistent Panel Examples</h1>
<div class="code">
- // Simplest case:
- $('#panel').persistentPanel();
+ // Simple case:
+ $('#panel').persistentPanel({defaultState: 'open'});
</div>
<div class="panel" id="panel">
View
2  jquery.persistentpanel.js
@@ -152,7 +152,7 @@
$.fn.persistentPanel.defaults = {
togglerContents: {open: null, closed: null}, // To be determined by openDirection
cookieName: 'persistentPanel',
- defaultState: 'open',
+ defaultState: 'closed',
openDirection: 'down',
duration: 500,
toggler: '#panelToggler',
Please sign in to comment.
Something went wrong with that request. Please try again.