1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-23 09:41:11 +00:00

Merge pull request #11667 from neilhem/master

replace double quotation marks with single in code examples
This commit is contained in:
Mark Otto 2013-12-01 20:48:43 -08:00
commit b636756e53

View File

@ -43,14 +43,14 @@ $(document).off('.alert.data-api')
<h3 id="js-programmatic-api">Programmatic API</h3> <h3 id="js-programmatic-api">Programmatic API</h3>
<p>We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.</p> <p>We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.</p>
{% highlight js %} {% highlight js %}
$(".btn.danger").button("toggle").addClass("fat") $('.btn.danger').button('toggle').addClass('fat')
{% endhighlight %} {% endhighlight %}
<p>All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):</p> <p>All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):</p>
{% highlight js %} {% highlight js %}
$("#myModal").modal() // initialized with defaults $('#myModal').modal() // initialized with defaults
$("#myModal").modal({ keyboard: false }) // initialized with no keyboard $('#myModal').modal({ keyboard: false }) // initialized with no keyboard
$("#myModal").modal('show') // initializes and invokes show immediately</p> $('#myModal').modal('show') // initializes and invokes show immediately</p>
{% endhighlight %} {% endhighlight %}
<p>Each plugin also exposes its raw constructor on a <code>Constructor</code> property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel=popover]').data('popover')</code>.</p> <p>Each plugin also exposes its raw constructor on a <code>Constructor</code> property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel=popover]').data('popover')</code>.</p>
@ -1600,7 +1600,7 @@ $('.btn').button()
<h3>Via JavaScript</h3> <h3>Via JavaScript</h3>
<p>Enable manually with:</p> <p>Enable manually with:</p>
{% highlight js %} {% highlight js %}
$(".collapse").collapse() $('.collapse').collapse()
{% endhighlight %} {% endhighlight %}
<h3>Options</h3> <h3>Options</h3>