Skip to content

Commit

Permalink
Tabs: Fixed #2867: Performing a global replace on templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed May 30, 2008
1 parent cd2adeb commit 42b94bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/source/ui.tabs.js
Expand Up @@ -321,7 +321,7 @@
index = this.$tabs.length; // append by default index = this.$tabs.length; // append by default


var o = this.options; 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); $li.data('destroy.tabs', true);


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

0 comments on commit 42b94bf

Please sign in to comment.