From 563106f0a8175b7aa59c725da6ee6950fd44e6af Mon Sep 17 00:00:00 2001 From: mark-nielsen Date: Sat, 23 Sep 2006 18:45:59 +0000 Subject: [PATCH] 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. --- mod/lesson/locallib.php | 5 +++- mod/lesson/styles.php | 64 ++++++++++++----------------------------- mod/lesson/view.php | 63 +++++++++++++++++++--------------------- 3 files changed, 53 insertions(+), 79 deletions(-) diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index ae828bf0710..11c13e44efb 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 .= "