[ Index ] |
|
Code source de WordPress 2.1.2 |
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 });
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Fri Mar 30 19:41:27 2007 | par Balluche grâce à PHPXref 0.7 |