From c18fea093f8be7ab0643f6edc4c351f9cbecc946 Mon Sep 17 00:00:00 2001 From: vitadub Date: Wed, 22 Nov 2017 18:28:46 -0700 Subject: [PATCH] form submit fix (#125) * added .txt extention to Database_JobTables * tried to remove commas from $typeofworkstring * edit * added files back to forlder * added alice's part * xxx * Delete Database_JobTables.txt * comma strip * Added Educator Job Table Modified Database_JobTables to include Educator Table * Updated Tooltip Descriptions Changed the ears_tipped and pregnant_cats images to have a more meaningful description. * updated login page not sure if it'll show up correctly because I couldn't get to run in on my computer... I tested it by changing it to html instead of php.. * minor change to login * merge problems.. * userprofile.css small modification * create.account ext rename * updated createaccount.php * error msg box added * Added a couple of tooltips Tooltips to forms * tooltip updates * removed everthing removed everything * add everything added everything back in * buttons for "text ok" added to forms * volunteerform * volunteerform textok * removed <<<<Must select at least one'); - $('#workerror').removeAttr('hidden'); - return false; - }); }); diff --git a/sacferals/updateprofile.php b/sacferals/updateprofile.php index 10c2cdc..1132266 100755 --- a/sacferals/updateprofile.php +++ b/sacferals/updateprofile.php @@ -260,7 +260,7 @@ function formatPhone(phoneId) {
@@ -377,6 +377,18 @@ function formatPhone(phoneId) { } } }); + + $('#updateform').submit(function(){ //dont submit form if at least one isn't selected + var work = $('#workchecks').find('input'); + for(var i=0; iMust select at least one'); + $('#workerror').removeAttr('hidden'); + return false; + }); }); diff --git a/sacferals/volunteerform.php b/sacferals/volunteerform.php index f960296..5fc0fcf 100755 --- a/sacferals/volunteerform.php +++ b/sacferals/volunteerform.php @@ -265,5 +265,21 @@ function formatPhone(phoneId) { + +