Commit 474f7a63 authored by Mike gabriel's avatar Mike gabriel Committed by Benoit Mortier
Browse files

1003_allow-tab-browsing-for-non-editable-tabs

Showing with 9 additions and 9 deletions
+9 -9
......@@ -168,6 +168,15 @@ class tabs
*/
function execute()
{
/* Look for pressed tab button first */
foreach ($this->by_object as $class => &$obj) {
if (isset($_POST[$class]) || (isset($_POST['arg']) && $_POST['arg'] == "$class")) {
$this->current = $class;
break;
}
}
unset($obj);
/* Show object */
$display = '<div class="tab_content">'."\n";
......@@ -198,15 +207,6 @@ class tabs
/* Rotate current to last */
$this->last = $this->current;
/* Look for pressed tab button */
foreach ($this->by_object as $class => &$obj) {
if (isset($_POST[$class]) || (isset($_POST['arg']) && $_POST['arg'] == "$class")) {
$this->current = $class;
break;
}
}
unset($obj);
/* Save last tab */
if ($this->last != "") {
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, $this->last, "Saving");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment