[CMF-checkins] CVS: CMF/CMFCollector/skins/collector - collector_issue_followup_form.pt:1.21

Ken Manheimer klm@zope.com
Fri, 25 Oct 2002 11:15:24 -0400


Update of /cvs-repository/CMF/CMFCollector/skins/collector
In directory cvs.zope.org:/tmp/cvs-serv5203

Modified Files:
	collector_issue_followup_form.pt 
Log Message:
Basic javascript tweak so that the Assign radio button is checked any
time any of the assignment entries are selected.  (People frequently
change the select of supporters but forget to check the button, and
then had to do another followup to make the assignments actually take
effect.)


=== CMF/CMFCollector/skins/collector/collector_issue_followup_form.pt 1.20 => 1.21 ===
--- CMF/CMFCollector/skins/collector/collector_issue_followup_form.pt:1.20	Tue Sep 10 16:30:19 2002
+++ CMF/CMFCollector/skins/collector/collector_issue_followup_form.pt	Fri Oct 25 11:15:24 2002
@@ -22,6 +22,15 @@
 
 <div metal:fill-slot="main">
 
+  <script type="text/javascript"><!--
+
+  function trip_assigned_button() {
+      button = document.getElementById("assign_button");
+      button.checked = 1;
+      return true;
+  }
+  // --></script>
+
   <div tal:condition="not: collector_issue_header_present|nothing">
     <!-- Master template has no "header" macro... -->
     <div metal:use-macro="here/collector_macros/macros/issue_header">
@@ -85,7 +94,7 @@
         <td tal:define="assigning python: [i[0] for i in actions_pairs
                                              if i[1] == 'Assign']"
             tal:condition="assigning">
-          <input type="radio" name="action" value="Assign"
+          <input type="radio" name="action" id="assign_button" value="Assign"
                  tal:attributes="value python: assigning[0]">Assign:
         </td>
       </tr>
@@ -110,12 +119,13 @@
                         supporters here/aq_parent/supporters"
             tal:condition="assigning">
           <select name="assignees:list" MULTIPLE size="5"
+                  onclick="trip_assigned_button();"
                   tal:attributes="size python:
                                        min(max(len(supporters), 3), 8)">
             <option tal:content="supporter"
                     tal:repeat="supporter supporters"
                     tal:attributes="selected python:
-                    supporter in here.assigned_to()">
+                                             supporter in here.assigned_to()">
               SUPPORTER
             </option>
           </select>