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

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

parent 89b976ed
......@@ -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");
......
Markdown is supported
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