[wp-cvs] wordpress/wp-admin moderation.php,1.24,1.25

Matthew Mullenweg saxmatt at users.sourceforge.net
Mon Dec 20 20:03:33 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10372/wp-admin

Modified Files:
	moderation.php 
Log Message:
Better mass-moderation.

Index: moderation.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/moderation.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** moderation.php	15 Dec 2004 23:20:51 -0000	1.24
--- moderation.php	20 Dec 2004 20:03:30 -0000	1.25
***************
*** 146,153 ****
  ?>
      </ol>
  	<p>
  		<input name="feelinglucky" type="checkbox" id="feelinglucky" value="true" /> <label for="feelinglucky"><?php _e('Delete every comment marked "defer." <strong>Warning: This can&#8217;t be undone.</strong>'); ?></label>
  	</p>
!     <p class="submit"><input type="submit" name="submit" value="<?php _e('Moderate Comments &raquo;') ?>" /></p>
      </form>
  <?php
--- 146,181 ----
  ?>
      </ol>
+ 
+     <p class="submit"><input type="submit" name="submit" value="<?php _e('Moderate Comments &raquo;') ?>" /></p>
+ <script type="text/javascript">
+ function markAllForDelete() {
+ 	for (var i=0; i< document.approval.length; i++) {
+ 		if (document.approval[i].value == "delete") {
+ 			document.approval[i].checked = true;
+ 		}
+ 	}
+ }
+ function markAllForApprove() {
+ 	for (var i=0; i< document.approval.length; i++) {
+ 		if (document.approval[i].value == "approve") {
+ 			document.approval[i].checked = true;
+ 		}
+ 	}
+ }
+ function markAllForDefer() {
+ 	for (var i=0; i< document.approval.length; i++) {
+ 		if (document.approval[i].value == "later") {
+ 			document.approval[i].checked = true;
+ 		}
+ 	}
+ }
+ document.write('<ul><li><a href="javascript:markAllForApprove()"><?php _e('Mark all for approval'); ?></a></li><li><a href="javascript:markAllForDelete()"><?php _e('Mark all for deletion'); ?></a></li><li><a href="javascript:markAllForDefer()"><?php _e('Mark all for later'); ?></a></li></ul>');
+ </script>
+ 
+ <noscript>
  	<p>
  		<input name="feelinglucky" type="checkbox" id="feelinglucky" value="true" /> <label for="feelinglucky"><?php _e('Delete every comment marked "defer." <strong>Warning: This can&#8217;t be undone.</strong>'); ?></label>
  	</p>
! </noscript>
      </form>
  <?php




More information about the cvs mailing list