+ sync_anchor(ui.tab.hash);
+ }
+ });
+
+ jQuery(".rights-editor .category-tabs").tabs({
+ cookie: { name: "rights-category-tab" /* saves current tab in cookie */ },
+ show: function(ev, ui) {
+ jQuery(".rights-editor .category-tabs").not(this).each(function() {
+ var item = jQuery(this);
+ var selected = item.tabs("option", "selected") || 0;
+ if (selected != ui.index)
+ item.tabs("select", ui.index);
+ });