[ Index ]
 

Code source de WordPress 2.1.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/wp-admin/ -> edit-comments.js (source)

   1  addLoadEvent(function() {
   2      theCommentList = new listMan('the-comment-list');
   3      if ( !theCommentList )
   4          return false;
   5      theCommentList.dimComplete = function(what,id,dimClass) {
   6          var m = document.getElementById('awaitmod');
   7          if ( document.getElementById(what + '-' + id).className.match(dimClass) ) m.innerHTML = parseInt(m.innerHTML,10) + 1;
   8          else m.innerHTML = parseInt(m.innerHTML,10) - 1;
   9      }
  10      theCommentList.delComplete = function(what,id) {
  11          var m = document.getElementById('awaitmod');
  12          if ( document.getElementById(what + '-' + id).className.match('unapproved') ) m.innerHTML = parseInt(m.innerHTML,10) - 1;
  13      }
  14      if ( theList ) // the post list: edit.php
  15          theList.delComplete = function() {
  16              var comments = document.getElementById('comments');
  17              var commdel = encloseFunc(function(a){a.parentNode.removeChild(a);},comments);
  18              var listdel = encloseFunc(function(a){a.parentNode.removeChild(a);},theCommentList.theList);
  19              setTimeout(commdel,705);
  20              setTimeout(listdel,705);
  21          }
  22  });
  23  


Généré le : Fri Mar 30 19:41:27 2007 par Balluche grâce à PHPXref 0.7