[ Index ]
 

Code source de WordPress 2.1.2

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

title

Body

[fermer]

/wp-admin/ -> categories.js (source)

   1  addLoadEvent(function() {
   2      if (!theList.theList) return false;
   3      document.forms.addcat.submit.onclick = function(e) {return killSubmit('theList.ajaxAdder("cat", "addcat");', e); };
   4      theList.addComplete = function(what, where, update, transport) {
   5          var name = getNodeValue(transport.responseXML, 'name');
   6          var id = transport.responseXML.getElementsByTagName(what)[0].getAttribute('id');
   7          var options = document.forms['addcat'].category_parent.options;
   8          options[options.length] = new Option(name, id);
   9      };
  10      theList.delComplete = function(what, id) {
  11          var options = document.forms['addcat'].category_parent.options;
  12          for ( var o = 0; o < options.length; o++ )
  13              if ( id == options[o].value )
  14                  options[o] = null;
  15      };
  16  });


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