From: Scott González Date: Fri, 30 May 2008 00:14:50 +0000 (+0000) Subject: Tabs: Fixed #2867: Performing a global replace on templates. X-Git-Tag: 1.5.1~274 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=42b94bf1739548dac2eff44aa80ba8872b8c2eca;p=jquery-ui.git Tabs: Fixed #2867: Performing a global replace on templates. --- diff --git a/ui/source/ui.tabs.js b/ui/source/ui.tabs.js index 3113557af..605dfab3f 100644 --- a/ui/source/ui.tabs.js +++ b/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] );