Update of 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/resources
In directory james.mmbase.org:/tmp/cvs-serv17669/src/webapp/editors/resources

Modified Files:
        attachmentsearch.jsp imagesearch.jsp urlsearch.jsp 
Log Message:
CMSC-1069(Do not show submit button about deleting , add alert when do not 
choose any items.)


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/resources
See also: http://www.mmbase.org/jira/browse/CMSC-1069


Index: attachmentsearch.jsp
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/resources/attachmentsearch.jsp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- attachmentsearch.jsp        10 Oct 2008 05:09:56 -0000      1.17
+++ attachmentsearch.jsp        15 Oct 2008 06:34:06 -0000      1.18
@@ -32,6 +32,8 @@
            if(del){
              document.forms['imageform'].submit();
            }
+         }else{
+             alert("<fmt:message key="secondaryedit.mass.atleast.delete"/> ");
          }
         }
    </script>
@@ -81,7 +83,9 @@
                <form 
action="SecondaryContentMassDeleteAction.do?object_type=attachments" 
method="post" name="attachform">
                   <table>
                      <tr>
+                        <c:if test="${fn:length(results) >1}">
                         <th><input type="submit" 
onclick="confirmDelete();return false;" value="<fmt:message 
key="secondaryedit.mass.delete"/>"/></th>
+                        </c:if>
                      </tr>
                      <tr class="listheader">
                         <th>


Index: imagesearch.jsp
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/resources/imagesearch.jsp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- imagesearch.jsp     10 Oct 2008 05:09:56 -0000      1.17
+++ imagesearch.jsp     15 Oct 2008 06:34:06 -0000      1.18
@@ -35,6 +35,8 @@
            if(del){
              document.forms['imageform'].submit();
            }
+         }else{
+             alert("<fmt:message key="secondaryedit.mass.atleast.delete"/> ");
          }
         }
    </script>
@@ -80,7 +82,9 @@
          <form action="SecondaryContentMassDeleteAction.do?object_type=images" 
method="post" name="imageform">
             <table>
                <tr>
+                  <c:if test="${fn:length(results) >1}">
                   <th><input type="submit" onclick="confirmDelete();return 
false;" value="<fmt:message key="secondaryedit.mass.delete"/>"/></th>
+                  </c:if>
                </tr>
                <tr class="listheader">
                   <th width="55">


Index: urlsearch.jsp
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/resources/urlsearch.jsp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- urlsearch.jsp       10 Oct 2008 05:09:56 -0000      1.15
+++ urlsearch.jsp       15 Oct 2008 06:34:06 -0000      1.16
@@ -30,6 +30,8 @@
         if(del){
           document.forms['imageform'].submit();
         }
+      }else{
+             alert("<fmt:message key="secondaryedit.mass.atleast.delete"/> ");
       }
    }
 </script>
@@ -73,7 +75,9 @@
       <form action="SecondaryContentMassDeleteAction.do?object_type=urls" 
method="post" name="urlform">
          <table border="0" width="100%" class="listcontent">
             <tr>
+               <c:if test="${fn:length(results) >1}">
                <th><input type="submit" onclick="confirmDelete();return 
false;" value="<fmt:message key="secondaryedit.mass.delete"/>"/></th>
+               </c:if>
             </tr>
             <tr class="listheader">
                <th>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to