From: mark-nielsen Date: Sat, 23 Sep 2006 18:45:59 +0000 (+0000) Subject: Fixed branch table buttons to work with JavaScript turned off. This fix lead to... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=563106f0a8175b7aa59c725da6ee6950fd44e6af;p=moodle.git Fixed branch table buttons to work with JavaScript turned off. This fix lead to some minor changes to the button output, but hopefully simplified things. Also, removed .hidden-label class because it was no longer in use due to label fixes earlier. --- diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index ae828bf071..11c13e44ef 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -395,6 +395,9 @@ function lesson_print_messages() { * @return mixed boolean/html **/ function lesson_print_submit_link($name, $form, $align = 'center', $class='standardbutton', $title = '', $id = '', $return = false) { + if (!empty($align)) { + $align = " align=\"$align\""; + } if (!empty($id)) { $id = " id=\"$id\""; } @@ -402,7 +405,7 @@ function lesson_print_submit_link($name, $form, $align = 'center', $class='stand $title = $name; } - $output = "
\n"; + $output = "
\n"; $output .= "