aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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] );