Skip to content
Permalink
Browse files

Tabs: Fixed #2867: Performing a global replace on templates.

  • Loading branch information
scottgonzalez committed May 30, 2008
1 parent cd2adeb commit 42b94bf1739548dac2eff44aa80ba8872b8c2eca
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/source/ui.tabs.js
@@ -321,7 +321,7 @@
index = this.$tabs.length; // append by default

var o = this.options;
var $li = $(o.tabTemplate.replace(/#\{href\}/, url).replace(/#\{label\}/, label));
var $li = $(o.tabTemplate.replace(/#\{href\}/g, url).replace(/#\{label\}/g, label));
$li.data('destroy.tabs', true);

var id = url.indexOf('#') == 0 ? url.replace('#', '') : this.tabId( $('a:first-child', $li)[0] );

0 comments on commit 42b94bf

Please sign in to comment.
You can’t perform that action at this time.