From: Alan Pippin Date: Tue, 26 Oct 2010 23:24:51 +0000 (-0600) Subject: Added case '0' when new companionship is selected, all multi-selects are cleared. X-Git-Tag: release_1_1_0^2~2^2~2 X-Git-Url: http://git.pippins.net/embedvideo/.git/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/%24link?a=commitdiff_plain;h=2c0ebf7179177cbd6ee333c4e45c3dab37e9fc41;p=eq%2F.git Added case '0' when new companionship is selected, all multi-selects are cleared. --- 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}