From 2c0ebf7179177cbd6ee333c4e45c3dab37e9fc41 Mon Sep 17 00:00:00 2001 From: Alan Pippin Date: Tue, 26 Oct 2010 17:24:51 -0600 Subject: [PATCH] Added case '0' when new companionship is selected, all multi-selects are cleared. --- templates/default/ht_sandbox.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/default/ht_sandbox.tpl b/templates/default/ht_sandbox.tpl index 739a887..7088901 100644 --- a/templates/default/ht_sandbox.tpl +++ b/templates/default/ht_sandbox.tpl @@ -7,6 +7,11 @@ { //alert($('#companionship :selected').attr('id')+' - '+$('#companionship :selected').val()+' - '+$('#companionship :selected').text()); switch ($('#companionship :selected').val()) { + case '0': + $("#district option:selected").removeAttr("selected"); + $("#assignedHT option:selected").removeAttr("selected"); + $("#assignedFamilies option:selected").removeAttr("selected"); + break; {switch_case_list} -- 2.34.1