diff -r 2ee166f109ae -r 0c625ce49a81 src/cm/templates/site/macros/main_tabs.html --- a/src/cm/templates/site/macros/main_tabs.html Thu Sep 19 14:57:00 2013 +0200 +++ b/src/cm/templates/site/macros/main_tabs.html Fri Sep 20 16:28:40 2013 +0200 @@ -57,11 +57,10 @@ } {% endif %} - $("#main-tabs").tabs({ ajaxOptions: { async: false }, selected: tab_index}) ; - - $('.cust_behav').click(function() { - window.location = this.href; - }); + $("#main-tabs").tabs({ ajaxOptions: { async: false }, active: tab_index}); + $("#main-tabs").on( "tabsbeforeactivate", function( event, ui ) { + window.location = ui.newTab.children ().first ().attr ('href'); + } ); $("#dashboard_link").attr("href", tb_conf['dashboard-url']) ; $("#text_link").attr("href", tb_conf['text-url']) ;