Permalink
Browse files

Issue #405

Close all accordions when step into admin or click oscommerce logo

Signed-off-by: Gergely <t-gely@freemail.hu>
  • Loading branch information...
1 parent f780f74 commit 8cb66ab4f86b2e5053ec3d73c5c4f45fe2e93962 @tgely tgely committed with acidvertigo Feb 5, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 catalog/admin/includes/column_left.php
@@ -53,13 +53,19 @@
foreach ($cl_box_groups as $groups) {
foreach ($groups['apps'] as $app) {
if ($app['code'] == $PHP_SELF) {
- echo ',active: ' . $counter;
+ $active_value = $counter;
break;
}
}
$counter++;
}
+
+ if (isset($active_value)) {
+ echo ',active: ' . $active_value;
+ } else {
+ echo ',active: ' . $counter;
+ }
?>
});

0 comments on commit 8cb66ab

Please sign in to comment.