diff options
Diffstat (limited to 'js/bootstrap-tab.js')
-rw-r--r-- | js/bootstrap-tab.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/bootstrap-tab.js b/js/bootstrap-tab.js index 6aa8ae32cf..e0a92816d4 100644 --- a/js/bootstrap-tab.js +++ b/js/bootstrap-tab.js @@ -79,7 +79,7 @@ /* TAB PLUGIN DEFINITION * ===================== */ - $.fn.tab = function (option) { + $.fn.tab = function ( option ) { return this.each(function () { var $this = $(this) , data = $this.data('tab') @@ -94,11 +94,11 @@ /* TAB DATA-API * ============ */ - $(document).ready(function () { - $('body').delegate('[data-toggle="tab"], [data-toggle="pill"]', 'click.tab.data-api', function (e) { + $(function () { + $('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) { e.preventDefault() $(this).tab('show') }) }) -}( window.jQuery || window.ender )
\ No newline at end of file +}( window.jQuery )
\ No newline at end of file |