diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-05-30 00:14:50 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-05-30 00:14:50 +0000 |
commit | 42b94bf1739548dac2eff44aa80ba8872b8c2eca (patch) | |
tree | 95376de67e51cd49baaee1c5a77083b6063c4408 /ui/source | |
parent | cd2adeb7259d1705630fa5c9537667066cc8ae8b (diff) | |
download | jquery-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.js | 2 |
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] );
|