]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
removed twipsy options 554/head
authorRod Vagg <rod@vagg.org>
Mon, 7 Nov 2011 01:10:53 +0000 (12:10 +1100)
committerRod Vagg <rod@vagg.org>
Mon, 7 Nov 2011 01:11:08 +0000 (12:11 +1100)
docs/javascript.html
js/bootstrap-twipsy.js
js/tests/unit/bootstrap-popover.js
js/tests/unit/bootstrap-twipsy.js

index d62dd731c122ecf3079f69e7a0c5943b535e1812..4947735123d12cb3c41c072e752bad786358cf12 100644 (file)
@@ -559,12 +559,6 @@ $('#.tabs').bind('change', function (e) {
                <td>[default markup]</td>
                <td>the html template used for rendering a twipsy</td>
              </tr>
-             <tr>
-               <td>contentSelector</td>
-               <td>string</td>
-               <td>.twipsy-inner</td>
-               <td>selector used to find the title element within the tooltip</td>
-             </tr>
             </tbody>
           </table>
           <p><span class="label notice">Notice</span> Individual twipsy instance options can alternatively be specified through the use of data attributes.</code></p>
index 24c1ced8c7da145ecd74066334860c0bdb686909..5ebbddd675d2f7763048f32061072bdd84250b0d 100644 (file)
 
   , setContent: function () {
       var $tip = this.tip()
-      $tip.find(this.options.contentSelector)[this.options.html ? 'html' : 'text'](this.getTitle())
+      $tip.find('.twipsy-inner')[this.options.html ? 'html' : 'text'](this.getTitle())
       $tip[0].className = 'twipsy'
     }
 
   , title: 'title'
   , trigger: 'hover'
   , template: '<div class="twipsy-arrow"></div><div class="twipsy-inner"></div>'
-  , contentSelector: '.twipsy-inner'
   }
 
   $.fn.twipsy.rejectAttrOptions = [ 'title' ]
     return $.extend({}, options, data)
   }
 
-}( window.jQuery || window.ender );
+}( window.jQuery || window.ender );
\ No newline at end of file
index 69f3e0d7fa1ed5ea5a84be2d34a0c1646ac699ec..823526727fe5101eda572309cd69e8fc7a867a8f 100644 (file)
@@ -78,7 +78,7 @@ $(function () {
         var expectedTitle = 'Gotta make you understand'
           , popover = $('<a href="#">@rvagg</a>')
               .attr('title', expectedTitle)
-              .data('content', '<p><b>Never gonna give you up</b>,</p><p>Never gonna let you down</p>')
+              .attr('data-content', '<p><b>Never gonna give you up</b>,</p><p>Never gonna let you down</p>')
               .appendTo('#qunit-runoff')
               .popover({
                     html: true
index 74855931a6467e7ac6659346fdd853cee61af31d..04000696ae0dbe0e31763c6bbe44d2cb7379fe10 100644 (file)
@@ -78,22 +78,4 @@ $(function () {
         $('#qunit-runoff').empty()
       })
 
-      test("should allow arbitrary template html with content selector options", function() {
-        $.support.transition = false
-        var twipsy = $('<a href="#" rel="twipsy" title="<b>@fat</b>"></a>')
-          .appendTo('#qunit-runoff')
-          .twipsy({
-                html: true
-              , contentSelector: 'h1'
-              , template: '<div><h1>Funky Twipsy!</h1><p class="funky"><b>@rvagg was here</b></p></div>'
-            })
-          .twipsy('show')
-
-        ok($('.twipsy h1').length, 'h1 tag was inserted')
-        ok($('.twipsy p>b').length, 'p > b tags were inserted')
-        ok($('.twipsy h1>b').length, 'h1 tag was customised')
-        twipsy.twipsy('hide')
-        ok(!$(".twipsy").length, 'twipsy removed')
-        $('#qunit-runoff').empty()
-      })
-})
+})
\ No newline at end of file