';
}
// default format text options
@@ -687,20 +685,9 @@
case LESSON_BRANCHTABLE :
$options = new stdClass;
$options->para = false;
- $buttons = array('next' => array(), 'prev' => array(), 'other' => array());
- /// seperate out next and previous jumps from the other jumps
+ $buttons = array();
$i = 0;
foreach ($answers as $answer) {
- if ($answer->jumpto == LESSON_NEXTPAGE) {
- $type = 'next';
- $class = 'nextbutton';
- } else if ($answer->jumpto == LESSON_PREVIOUSPAGE) {
- $type = 'prev';
- $class = 'prevbutton';
- } else {
- $type = 'other';
- $class = 'standardbutton';
- }
// Each button must have its own form inorder for it to work with JavaScript turned off
$button = "';
- $buttons[$type][] = $button;
+ $buttons[] = $button;
$i++;
}
@@ -724,10 +711,8 @@
$orientation = 'vertical';
}
- $fullbuttonhtml = "\n';
echo $fullbuttonhtml;
} else {
- echo ' |
'; // ends the answers table
- // When buttons are horizontal and inside the table, the button then line wraps when clicked in FF.
- // Seems like the border-collapse might be the problem? Easiest fix is to move the buttons outside
- // of the table.
- print_simple_box_start('center');
echo $fullbuttonhtml;
- print_simple_box_end();
}
break;
@@ -765,11 +744,13 @@
print_simple_box_end();
break;
}
- echo '