diff options
| author | fat <[email protected]> | 2013-05-16 20:19:51 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2013-05-16 20:19:51 -0700 |
| commit | 140ef2320bbb96ad90b73a884d83198706affaf9 (patch) | |
| tree | 4de562f3c4fa8d989de16ebe61fd07732109a9e5 /js/tab.js | |
| parent | 5ab72f76878a85f105702a24096268fea73fba2d (diff) | |
| download | bootstrap-140ef2320bbb96ad90b73a884d83198706affaf9.tar.xz bootstrap-140ef2320bbb96ad90b73a884d83198706affaf9.zip | |
change namespace back to dot notation and someother js shizzle
Diffstat (limited to 'js/tab.js')
| -rw-r--r-- | js/tab.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -40,7 +40,7 @@ if ($this.parent('li').hasClass('active')) return var previous = $ul.find('.active:last a')[0] - var e = $.Event('bs:tab:show', { + var e = $.Event('show.bs.tab', { relatedTarget: previous }) @@ -53,7 +53,7 @@ this.activate($this.parent('li'), $ul) this.activate($target, $target.parent(), function () { $this.trigger({ - type: 'bs:tab:shown' + type: 'shown.bs.tab' , relatedTarget: previous }) }) @@ -103,9 +103,9 @@ $.fn.tab = function ( option ) { return this.each(function () { var $this = $(this) - var data = $this.data('bs-tab') + var data = $this.data('bs.tab') - if (!data) $this.data('bs-tab', (data = new Tab(this))) + if (!data) $this.data('bs.tab', (data = new Tab(this))) if (typeof option == 'string') data[option]() }) } @@ -125,7 +125,7 @@ // TAB DATA-API // ============ - $(document).on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) { + $(document).on('click.bs.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) { e.preventDefault() $(this).tab('show') }) |
