Added case '0' when new companionship is selected, all multi-selects are cleared.
authorAlan Pippin <apippin@pippins.net>
Tue, 26 Oct 2010 23:24:51 +0000 (17:24 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Tue, 26 Oct 2010 23:24:51 +0000 (17:24 -0600)
templates/default/ht_sandbox.tpl

index 739a887f414c54bc0d8fb3f08ad2029d69613aaa..7088901a00b40acd15ac0ae870e553d797dbbbba 100644 (file)
@@ -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;
 <!-- BEGIN switch_case_list -->
         {switch_case_list}
 <!-- END switch_case_list -->