continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r581241 - in /maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp: admin/buildQueueView.jsp buildResults.jsp components/projectSummaryComponent.jsp
Date Tue, 02 Oct 2007 13:56:38 GMT
Author: evenisse
Date: Tue Oct  2 06:56:37 2007
New Revision: 581241

URL: http://svn.apache.org/viewvc?rev=581241&view=rev
Log:
Remove Select/Unselect All links to use column header checkbox

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/admin/buildQueueView.jsp
    maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildResults.jsp
    maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/admin/buildQueueView.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/admin/buildQueueView.jsp?rev=581241&r1=581240&r2=581241&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/admin/buildQueueView.jsp
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/admin/buildQueueView.jsp
Tue Oct  2 06:56:37 2007
@@ -72,7 +72,7 @@
                         sortable="false"
                         filterable="false">
                 <ec:row highlightRow="true">
-                  <ec:column alias="checkbox" title="&nbsp;" style="width:5px" filterable="false"
sortable="false" width="1%">
+                  <ec:column alias="selectedBuildTaskHashCodes" title="&nbsp;" style="width:5px"
filterable="false" sortable="false" width="1%" headerCell="selectAll">
                     <input type="checkbox" name="selectedBuildTaskHashCodes" value="${buildProjectTask.hashCode}"
/>
                   </ec:column>              
                   <ec:column property="projectName" title="buildQueue.currentTask.projectName"
style="white-space: nowrap" width="49%"/>
@@ -150,7 +150,7 @@
                         sortable="false"
                         filterable="false">
                 <ec:row highlightRow="true">
-                  <ec:column alias="checkbox" title="&nbsp;" style="width:5px" filterable="false"
sortable="false" width="1%">
+                  <ec:column alias="selectedCheckOutTaskHashCodes" title="&nbsp;"
style="width:5px" filterable="false" sortable="false" width="1%" headerCell="selectAll">
                     <input type="checkbox" name="selectedCheckOutTaskHashCodes" value="${currentCheckOutTask.hashCode}"
/>
                   </ec:column>              
                   <ec:column property="projectName" title="Project Name" style="white-space:
nowrap" width="98%"/>

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildResults.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildResults.jsp?rev=581241&r1=581240&r2=581241&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildResults.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildResults.jsp Tue
Oct  2 06:56:37 2007
@@ -50,7 +50,7 @@
                     sortable="false">
             <ec:row highlightRow="true">
               <redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroupName}">
-                <ec:column alias="checkbox" title=" " style="width:5px" filterable="false"
sortable="false">
+                <ec:column alias="selectedBuildResults" title=" " style="width:5px" filterable="false"
sortable="false" headerCell="selectAll">
                   <input type="checkbox" name="selectedBuildResults" value="${buildResult.id}"
/>
                 </ec:column>
               </redback:ifAuthorized>
@@ -92,8 +92,6 @@
                     <td>
                       <redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroupName}">
                         <input type="button" name="delete-project" value="<ww:text
name="delete"/>" onclick="document.forms.buildResultsForm.submit();" />
-                        <a href="#" onclick="selectAll();return false;"><ww:text
name="selectAll"/></a>
-                        <a href="#" onclick="unselectAll();return false;"><ww:text
name="unselectAll"/></a>
                       </redback:ifAuthorized>
                     </td>
                   </tr>
@@ -103,33 +101,6 @@
           </ww:if>
         </form>
       </div>
-
-    <script language="javascript">
-        <!--
-        function selectAll()
-        {
-            var inputs = document.getElementsByTagName("input");
-            for( var i = 0; inputs && i < inputs.length; i++ )
-            {
-                if( inputs[i].type == "checkbox" )
-                {
-                    inputs[i].checked = true;
-                }
-            }
-        }
-        function unselectAll()
-        {
-            var inputs = document.getElementsByTagName("input");
-            for( var i = 0; inputs && i < inputs.length; i++ )
-            {
-                if( inputs[i].type == "checkbox" )
-                {
-                    inputs[i].checked = false;
-                }
-            }
-        }
-        -->
-    </script>
     </body>
   </ww:i18n>
 </html>

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp?rev=581241&r1=581240&r2=581241&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp
Tue Oct  2 06:56:37 2007
@@ -61,7 +61,7 @@
       <c:set var="projectIdle" value="${!project.inBuildingQueue and ( ( ( project.state
gt 0 ) and ( project.state lt 5 ) ) or project.state == 7 or project.state gt 8 ) }" scope="request"/>
 
       <redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroupName}">
-        <ec:column alias="checkbox" title=" " style="width:5px" filterable="false" sortable="false"
width="1%">
+        <ec:column alias="selectedProjects" title=" " style="width:5px" filterable="false"
sortable="false" width="1%" headerCell="selectAll">
           <input type="checkbox" name="selectedProjects" value="${project.id}" />
         </ec:column>
       </redback:ifAuthorized>
@@ -245,8 +245,6 @@
                            onchange="$('projectsForm').buildDefinitionId.value=$('buildDefinitions').value"
/>                
                 <input type="button" name="build-projects" value="<ww:text name="projectGroup.buildProjects"/>"
onclick="$('projectsForm').methodToCall.value='build';$('projectsForm').submit();" />
                 <input type="button" name="cancel-builds" value="<ww:text name="projectGroup.cancelBuilds"/>"
onclick="document.forms.projectsForm.action='cancelBuilds.action';document.forms.projectsForm.submit();"
/>
-                <a href="#" onclick="selectAll();return false;"><ww:text name="selectAll"/></a>
-                <a href="#" onclick="unselectAll();return false;"><ww:text name="unselectAll"/></a>
               </redback:ifAuthorized>
             </td>
           </tr>
@@ -256,31 +254,4 @@
   </ww:if>
   </form>
 </ww:if>
-
-<script language="javascript">
-    <!--
-    function selectAll()
-    {
-        var inputs = document.getElementsByTagName("input");
-        for( var i = 0; inputs && i < inputs.length; i++ )
-        {
-            if( inputs[i].type == "checkbox" )
-            {
-                inputs[i].checked = true;
-            }
-        }
-    }
-    function unselectAll()
-    {
-        var inputs = document.getElementsByTagName("input");
-        for( var i = 0; inputs && i < inputs.length; i++ )
-        {
-            if( inputs[i].type == "checkbox" )
-            {
-                inputs[i].checked = false;
-            }
-        }
-    }
-    -->
-</script>
 </ww:i18n>



Mime
View raw message