]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Fixed #2867: Performing a global replace on templates.
authorScott González <scott.gonzalez@gmail.com>
Fri, 30 May 2008 00:14:50 +0000 (00:14 +0000)
committerScott González <scott.gonzalez@gmail.com>
Fri, 30 May 2008 00:14:50 +0000 (00:14 +0000)
ui/source/ui.tabs.js

index 3113557afe57464141b48cba959c7b9588b6c071..605dfab3f93c1dc79100c9d8eb29e3aec2bed0b9 100644 (file)
                                index = this.$tabs.length; // append by default\r
 \r
                        var o = this.options;\r
-                       var $li = $(o.tabTemplate.replace(/#\{href\}/, url).replace(/#\{label\}/, label));\r
+                       var $li = $(o.tabTemplate.replace(/#\{href\}/g, url).replace(/#\{label\}/g, label));\r
                        $li.data('destroy.tabs', true);\r
 \r
                        var id = url.indexOf('#') == 0 ? url.replace('#', '') : this.tabId( $('a:first-child', $li)[0] );\r