From 02d668fd2e31b01e330400738bf2fa7bcbfaa822 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sun, 11 Sep 2011 23:29:34 -0700 Subject: data-attributes need values to be picked up by jquery in ie8 and below :/ --- docs/javascript.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index c7f31961d..468085108 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -39,7 +39,7 @@ -
+

Bootstrap JS

@@ -247,7 +247,7 @@ $('#my-modal').bind('hidden', function () {

Demo

-
+

Project Name

@@ -338,7 +338,7 @@ $('#my-modal').bind('hidden', function () {
$('.tabs').tabs()

Markup

You can activate a tab or pill navigation without writing any javascript by simply giving them a data-tabs or data-pills attribute.

-
 <ul class="tabs" data-tabs >...</ul>
+
 <ul class="tabs" data-tabs="pls" >...</ul>

Methods

$().tabs or $().pills

@@ -366,7 +366,7 @@ $('#my-modal').bind('hidden', function () { </script>

Demo

-
    +
    • Home
    • Profile
    • Messages
    • @@ -648,11 +648,11 @@ Sunt qui biodiesel mollit officia, fanny pack put a bird on it thundercats seita

      Closes an alert.

      $(".alert-message").alert('close')

      Demo

      -
      +
      ×

      Holy guacamole! Best check yo self, you’re not looking too good.

      -
      +
      ×

      Oh snap! You got an error! Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.

      -- cgit v1.2.3 From fcf816a23644e9d077986a8c35e1487becb6ddc0 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sun, 11 Sep 2011 23:36:59 -0700 Subject: index to use data attr for scrollspy initilizing --- docs/javascript.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index 468085108..f08508659 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -39,7 +39,7 @@ -
      +

      Bootstrap JS

      -- cgit v1.2.3 From 44e2c7366896ac01e129f76fd2155d1a29f90ca8 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sun, 11 Sep 2011 23:48:43 -0700 Subject: data-attribute="x" annndddd... now all js with ie7+ support --- docs/javascript.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index f08508659..4f85242d5 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -39,7 +39,7 @@ -
      +

      Bootstrap JS

      @@ -247,7 +247,7 @@ $('#my-modal').bind('hidden', function () {

      Demo

      -
      +

      Project Name

      @@ -338,7 +338,7 @@ $('#my-modal').bind('hidden', function () {
      $('.tabs').tabs()

      Markup

      You can activate a tab or pill navigation without writing any javascript by simply giving them a data-tabs or data-pills attribute.

      -
       <ul class="tabs" data-tabs="pls" >...</ul>
      +
       <ul class="tabs" data-tabs="x" >...</ul>

      Methods

      $().tabs or $().pills

      @@ -366,7 +366,7 @@ $('#my-modal').bind('hidden', function () { </script>

      Demo

      -
        +
        • Home
        • Profile
        • Messages
        • @@ -648,11 +648,11 @@ Sunt qui biodiesel mollit officia, fanny pack put a bird on it thundercats seita

          Closes an alert.

          $(".alert-message").alert('close')

          Demo

          -
          +
          ×

          Holy guacamole! Best check yo self, you’re not looking too good.

          -
          +
          ×

          Oh snap! You got an error! Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.

          -- cgit v1.2.3 From cc05bce59723c227334d0cf0c168f541971db771 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sun, 11 Sep 2011 23:56:44 -0700 Subject: docs coppyy --- docs/javascript.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index 4f85242d5..e19f544eb 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -120,7 +120,7 @@

          Markup

          -

          You can activate modals on your page easily without having to write a single line of javascript. Just give an element a data-controls-modal which corresponds to a modal element id, and when clicked, it will launch your modal. To add modal options, just include them as data attributes as well.

          +

          You can activate modals on your page easily without having to write a single line of javascript. Just give an element a data-controls-modal attribute which corresponds to a modal element id, and when clicked, it will launch your modal. To add modal options, just include them as data attributes as well.

           <a class="btn" data-controls-modal="my-modal" data-backdrop="true" >Launch Modal</a>
           
          -- cgit v1.2.3 From 89465f8ce1065f907180cfffa3eac317b7c9774d Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Mon, 12 Sep 2011 00:03:24 -0700 Subject: few more js doc wording changes --- docs/javascript.html | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index e19f544eb..6d5cf9517 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -146,19 +146,11 @@ $('#my-modal').modal({
          $('#my-modal').modal(true)

          Notice Alternatively, this can be retrieved with $().data('modal').

          Events

          -

          Bootstrap's modal class exposes a few events for hooking into modal functionality. The include:

          - - - +

          Bootstrap's modal class exposes a few events for hooking into modal functionality.

          - + @@ -229,7 +221,7 @@ $('#my-modal').bind('hidden', function () {
           <ul class="tabs">
             <li class="active"><a href="#">Home</a></li>
          -  <li class="dropdown" data-dropdown>
          +  <li class="dropdown" data-dropdown="x" >
               <a href="#" class="dropdown-toggle">Dropdown</a>
               <ul class="dropdown-menu">
                 <li><a href="#">Secondary link</a></li>
          @@ -303,20 +295,20 @@ $('#my-modal').bind('hidden', function () {
                     
          $('#topbar').dropdown()

          Markup

          To easily add scrollspy behavior to your nav, just add the data-scrollspy attribute to the .topbar. -

          <div class="topbar" data-scrollspy >...</div>
          +
          <div class="topbar" data-scrollspy="x" >...</div>

          Methods

          $().scrollspy()

          Auto activates navigation buttons by users scroll position.

          $('body > .topbar').scrollSpy()
          -

          Notice Topbar anchor tags must have resolvable id targets. For example, a <a href="#home">home</a> might correspond to a <div id="home"></div>. +

          Notice Topbar anchor tags must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.

          .scrollspy('refresh')

          -

          The scrollspy caches nav buttons and section coordinates for performance. If you need to update this cache (likely if you have dynamic content) just call this refresh method. If you used the data attribute to define your scrollspy, just call refresh on the body like below.

          +

          The scrollspy caches nav buttons and section coordinates for performance. If you need to update this cache (likely if you have dynamic content) just call this refresh method. If you used the data attribute to define your scrollspy, just call refresh on the body.

          $('body').scrollspy('refresh')

          Demo

          -

          Look at the topbar navigation on this page.

          +

          Checkout the the topbar navigation on this page.

          -- cgit v1.2.3
          NameEvent Description