From: short <> Date: Thu, 20 Jun 2002 14:14:46 +0000 (+0000) Subject: Fixed JavaScript handling for the clients w/functional but undetected JS support X-Git-Url: https://git.jankratochvil.net/?p=www.energie.vellum.cz.git;a=commitdiff_plain;h=8813e85bed53692b0167b15be93edf5e54fbfdaa;hp=0730809bd5827180c67cbf822d878553f2043764 Fixed JavaScript handling for the clients w/functional but undetected JS support --- diff --git a/common.php b/common.php index 528f671..b755991 100644 --- a/common.php +++ b/common.php @@ -620,7 +620,7 @@ function print_form_radkova_inzerce($readonly,$total,$submit_name,$submit_value) >Zaslat daòový doklad?"disabled" for them) - .($readonly ? "" : " onclick=\"sum_total(this)\"") + .(!($have_js || $readonly) ? "" : " onclick=\"sum_total(this)\"") .(!($have_js || $readonly) ? "" : " disabled=\"disabled\"") .(!isset($doklad) ? "" : " checked=\"checked\"") .ereg_replace(" readonly=\"readonly\"","",$addons)." />"); @@ -632,7 +632,8 @@ function print_form_radkova_inzerce($readonly,$total,$submit_name,$submit_value) "); + .(!($have_js || $readonly) ? "" : " onclick=\"return(validate(this.form))\"") + ." />"); ?>