X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fui%2Fui_controls.inc;h=54712f9c8ab76bb2f902943be21b14476abaa043;hb=a2ae0e35302270ae811db2e6acb44c16b186a970;hp=afc02589bf78db1193b07d28e3655aa20efadc11;hpb=d1babda7c01b314d35fb89f2d195553b55936532;p=fa-stable.git diff --git a/includes/ui/ui_controls.inc b/includes/ui/ui_controls.inc index afc02589..54712f9c 100644 --- a/includes/ui/ui_controls.inc +++ b/includes/ui/ui_controls.inc @@ -134,7 +134,6 @@ function table_section($number=1, $width=false) echo "\n"; output_hidden(); $width = ($width ? "width='$width'" : ""); - //echo "\n"; // outer table echo "\n"; // outer table } echo "\n"; @@ -265,8 +264,15 @@ function viewer_link($label, $url='', $class='', $id='', $icon=null) function menu_link($url, $label, $id=null) { + global $path_to_root; + $id = default_focus($id); $pars = access_string($label); + + if ($url[0] != '/') + $url = '/'.$url; + $url = $path_to_root.$url; + return "$pars[0]"; } @@ -663,7 +669,7 @@ function page_processing($msg = false) global $Ajax; if ($msg === true) - $msg = _('Entered data has not been saved yet.\nDo you want to abandon changes?'); + $msg = _("Entered data has not been saved yet.\nDo you want to abandon changes?"); $js = "_validate._processing=" . ( $msg ? '\''.strtr($msg, array("\n"=>'\\n')) . '\';' : 'null;');