From 7ee2b6a976a5041a06514805216673ff6331dc54 Mon Sep 17 00:00:00 2001 From: Alexey Date: Sun, 8 Sep 2013 04:49:27 +0300 Subject: [PATCH] changed attr('data-target') to data('target'); this will extend js interface, to be possible to setup targets for tabs as var content=$('
',{text: 'content'}); var tab=('
  • ',{html: $('',{text: 'Main options'})}).addClass('active').data({target: $main,toggle: 'tab'}).appendTo(tabs); --- js/tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/tab.js b/js/tab.js index e1c155920f..10dc7e99bc 100644 --- a/js/tab.js +++ b/js/tab.js @@ -30,7 +30,7 @@ Tab.prototype.show = function () { var $this = this.element var $ul = $this.closest('ul:not(.dropdown-menu)') - var selector = $this.attr('data-target') + var selector = $this.data('target') if (!selector) { selector = $this.attr('href')