View Single Post
  #1  
Old 10-25-2006, 11:45 AM
syntaxmonster Offline
forum loafer
 
Join Date: Oct 2006
Posts: 7
Mark all images in admin area

Hi @all,


itīs realy a pain to mark all images in the admin area if you have a lot of them.
So here are a few lines of code which can help mark all images simultaneous:

Code:
<script language="JavaScript" type="text/javascript">
<!--
function CheckAll() {
  for (var i = 0; i < document.manageposts.elements.length; i++) {
    if(document.manageposts.elements[i].type == 'checkbox'){
      document.manageposts.elements[i].checked =         !(document.manageposts.elements[i].checked);
    }
  }
}
//-->
</script><a href="javascript:void(0)" onClick="CheckAll();">Check all</a>
Just put thes few lines after ?> at the bottom of admin/images_edit.php

Chris
Reply With Quote