aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2008-05-30 00:14:50 +0000
committerScott González <scott.gonzalez@gmail.com>2008-05-30 00:14:50 +0000
commit42b94bf1739548dac2eff44aa80ba8872b8c2eca (patch)
tree95376de67e51cd49baaee1c5a77083b6063c4408 /ui/source
parentcd2adeb7259d1705630fa5c9537667066cc8ae8b (diff)
downloadjquery-ui-42b94bf1739548dac2eff44aa80ba8872b8c2eca.tar.gz
jquery-ui-42b94bf1739548dac2eff44aa80ba8872b8c2eca.zip
Tabs: Fixed #2867: Performing a global replace on templates.
Diffstat (limited to 'ui/source')
-rw-r--r--ui/source/ui.tabs.js2
1 files changed, 1 insertions, 1 deletions
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] );