diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 47fc4b58..25817f55 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -926,9 +926,15 @@ class accountContainer { echo "
type."edit\">"; echo _('Please select page:'); echo "\n"; + // calculate button width + $buttonWidth = round(0.8 * strlen(utf8_decode(_("Reset changes")))); + for ($b = 0; $b < sizeof($this->order); $b++) { + $tempWidth = round(0.8 * strlen(utf8_decode($this->order[$b]))); + if ($buttonWidth < $tempWidth) $buttonWidth = $tempWidth; + } $x=0; // print normal button - echo "subpage == 'finish') echo " disabled"; @@ -938,7 +944,7 @@ class accountContainer { // $x is used to count up tabindex for ($i=1; $iorder); $i++ ) { // print normal button - echo "order[$i]."\" type=\"submit\" value=\""; + echo "order[$i]."\" type=\"submit\" value=\""; echo $this->module[$this->order[$i]]->get_alias(); echo "\" tabindex=$x"; if ($this->subpage == 'finish') echo " disabled"; @@ -946,7 +952,7 @@ class accountContainer { $x++; } if ($this->dn_orig!='') { - echo "subpage == 'finish') echo " disabled"; echo ">
\n"; }