From 8813e85bed53692b0167b15be93edf5e54fbfdaa Mon Sep 17 00:00:00 2001 From: short <> Date: Thu, 20 Jun 2002 14:14:46 +0000 Subject: [PATCH 1/1] Fixed JavaScript handling for the clients w/functional but undetected JS support --- common.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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))\"") + ." />"); ?> -- 1.8.3.1