From d38a79c57c8ec873fe25bfd41e9ad97ee00d8786 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 1 Apr 2015 17:26:52 +0300 Subject: [PATCH] fixed 'required' attribute for input to apply only when field is visible --- admin/new.php | 4 ++-- admin/questionnairelist.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/new.php b/admin/new.php index 2f8dc713..daab6d46 100644 --- a/admin/new.php +++ b/admin/new.php @@ -233,7 +233,7 @@ $surveys = $db->GetAll($sql);
- " data-off="" data-width="80"/> + " data-off="" data-width="80"/>
@@ -269,7 +269,7 @@ $surveys = $db->GetAll($sql);
- +
diff --git a/admin/questionnairelist.php b/admin/questionnairelist.php index 0fcd1e42..f98786b8 100644 --- a/admin/questionnairelist.php +++ b/admin/questionnairelist.php @@ -314,7 +314,7 @@ if (isset($_GET['modify'])) } xhtml_head(T_("Modify Questionnaire "),true,$css,$js_head, false, false, false, "  " . "$rs[description]" . ""); - + $CKEditor = new CKEditor(); $CKEditor->basePath = "../include/ckeditor/"; @@ -361,7 +361,7 @@ if (isset($_GET['modify']))
-
onchange="if(this.checked==true) {show(this,'limesc'); $('#url').attr('required','required');} else{ hide(this,'limesc'); $('#url').removeAttr('required');}" data-toggle="toggle" data-on="" data-off="" data-width="80"/>
+
onchange="if(this.checked==true) show(this,'limesc'); else hide(this,'limesc');" data-toggle="toggle" data-on="" data-off="" data-width="80"/>
>
@@ -396,7 +396,7 @@ if (isset($_GET['modify']))
- +
@@ -566,5 +566,5 @@ print "
"; xhtml_foot($js_foot); ?> \ No newline at end of file