]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs: use valid JSON in compound option value examples 13986/head
authorChris Rebert <code@rebertia.com>
Mon, 30 Jun 2014 04:08:27 +0000 (21:08 -0700)
committerChris Rebert <code@rebertia.com>
Mon, 30 Jun 2014 04:08:42 +0000 (21:08 -0700)
Fixes #13874.
[skip sauce]

docs/_includes/js/popovers.html
docs/_includes/js/tooltips.html

index 3f5702b49a08bc4c41c7207a59e1d6e9455e6e71..ef8e0794151877b290bbb1dc6a51391789271f2e 100644 (file)
@@ -175,7 +175,7 @@ $('.popover-dismiss').popover({
           <td>
            <p>Delay showing and hiding the popover (ms) - does not apply to manual trigger type</p>
            <p>If a number is supplied, delay is applied to both hide/show</p>
-           <p>Object structure is: <code>delay: { show: 500, hide: 100 }</code></p>
+           <p>Object structure is: <code>delay: { "show": 500, "hide": 100 }</code></p>
           </td>
         </tr>
         <tr>
@@ -225,7 +225,7 @@ $('.popover-dismiss').popover({
          <td>string | object</td>
          <td>{ selector: 'body', padding: 0 }</td>
          <td>
-          <p>Keeps the popover within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ selector: '#viewport', padding: 0 }</code></p>
+          <p>Keeps the popover within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ "selector": "#viewport", "padding": 0 }</code></p>
          </td>
        </tr>
       </tbody>
index 858a91ec389f0c15e0c7344fb644e48e494ea27c..fac4f65197c1dfcd2d57e20e55006aa7aedcf02e 100644 (file)
@@ -105,7 +105,7 @@ $('#example').tooltip(options)
          <td>
           <p>Delay showing and hiding the tooltip (ms) - does not apply to manual trigger type</p>
           <p>If a number is supplied, delay is applied to both hide/show</p>
-          <p>Object structure is: <code>delay: { show: 500, hide: 100 }</code></p>
+          <p>Object structure is: <code>delay: { "show": 500, "hide": 100 }</code></p>
          </td>
        </tr>
        <tr>
@@ -154,7 +154,7 @@ $('#example').tooltip(options)
          <td>string | object</td>
          <td>{ selector: 'body', padding: 0 }</td>
          <td>
-          <p>Keeps the tooltip within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ selector: '#viewport', padding: 0 }</code></p>
+          <p>Keeps the tooltip within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ "selector": "#viewport", "padding": 0 }</code></p>
          </td>
        </tr>
       </tbody>