]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/custom-fields.js
Wordpress 3.6
[autoinstalls/wordpress.git] / wp-admin / js / custom-fields.js
index ad7a2db16640affd0c186f2c557853be13129d5a..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,26 +0,0 @@
-function customFieldsOnComplete( what, where, update, transport ) {
-       var pidEl = $('post_ID');
-       pidEl.name = 'post_ID';
-       pidEl.value = getNodeValue(transport.responseXML, 'postid');
-       var aEl = $('hiddenaction')
-       if ( aEl.value == 'post' ) aEl.value = 'postajaxpost';
-}
-addLoadEvent(customFieldsAddIn);
-function customFieldsAddIn() {
-       theList.showLink=0;
-       theList.addComplete = customFieldsOnComplete;
-       if (!theList.theList) return false;
-       inputs = theList.theList.getElementsByTagName('input');
-       for ( var i=0; i < inputs.length; i++ ) {
-               if ('text' == inputs[i].type) {
-                       inputs[i].setAttribute('autocomplete', 'off');
-                       inputs[i].onkeypress = function(e) {return killSubmit('theList.ajaxUpdater("meta", "meta-' + parseInt(this.name.slice(5),10) + '");', e); };
-               }
-               if ('updatemeta' == inputs[i].className) {
-                       inputs[i].onclick = function(e) {return killSubmit('theList.ajaxUpdater("meta", "meta-' + parseInt(this.parentNode.parentNode.id.slice(5),10) + '");', e); };
-               }
-       }
-
-       $('metakeyinput').onkeypress = function(e) {return killSubmit('theList.inputData+="&id="+$("post_ID").value;theList.ajaxAdder("meta", "newmeta");', e); };
-       $('updatemetasub').onclick = function(e) {return killSubmit('theList.inputData+="&id="+$("post_ID").value;theList.ajaxAdder("meta", "newmeta");', e); };
-}