Index: branches/5.1.x/core/admin_templates/tree.tpl
===================================================================
diff -u -N -r12127 -r12657
--- branches/5.1.x/core/admin_templates/tree.tpl (.../tree.tpl) (revision 12127)
+++ branches/5.1.x/core/admin_templates/tree.tpl (.../tree.tpl) (revision 12657)
@@ -41,9 +41,9 @@
- " priority="" onclick="" icon="img/icons/icon24_.gif">
+ " priority="" onclick="" icon="img/icons/icon24_.png">
- " priority="" container="" onclick="" name="" icon="img/icons/icon24_.gif" load_url="">
+ " priority="" container="" onclick="" name="" icon="img/icons/icon24_.png" load_url="">
@@ -55,7 +55,7 @@
var TREE_ICONS_PATH = 'img/tree';
var TREE_SHOW_PRIORITY = 10;
- var the_tree = new TreeFolder('tree', '', '', 'img/icons/icon24_.gif', null, null, '', '');
+ var the_tree = new TreeFolder('tree', '', '', 'img/icons/icon24_.png', null, null, '', '');
@@ -91,16 +91,23 @@
}
function setCatalogTab($prefix) {
- var $ret = checkEditMode();
+ var $ret = checkEditMode(false);
if ($ret) {
var $right_frame = getFrame('main');
var $catalog_type = (typeof $right_frame.$Catalog != 'undefined') ? $right_frame.$Catalog.type : '';
+ // highlight "Structure & Data" node, when one of it's shortcut nodes are clicked
+
+ var $structure_node = the_tree.locateItemByURL('');
+
if ($catalog_type == 'AdvancedView') {
$right_frame.$Catalog.switchTab($prefix);
- return 1; // this opens folder, but disables click
+ return $structure_node; // this opens folder, but disables click
}
+
+ // this disabled click and causes other node to be highlighted
+ return $structure_node;
}
return $ret;
|