Changeset 4187 for trunk/wp-admin/custom-fields.js
- Timestamp:
- 09/13/2006 09:39:53 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-fields.js
r4163 r4187 1 function customFieldsOnComplete( ) {2 var pidEl = document.getElementById('post_ID');1 function customFieldsOnComplete( what, where, update, transport ) { 2 var pidEl = $('post_ID'); 3 3 pidEl.name = 'post_ID'; 4 pidEl.value = getNodeValue(t heList.ajaxAdd.responseXML, 'postid');5 var aEl = document.getElementById('hiddenaction')4 pidEl.value = getNodeValue(transport.responseXML, 'postid'); 5 var aEl = $('hiddenaction') 6 6 if ( aEl.value == 'post' ) aEl.value = 'postajaxpost'; 7 7 } … … 22 22 } 23 23 24 document.getElementById('metakeyinput').onkeypress = function(e) {return killSubmit('theList.inputData+="&id="+document.getElementById("post_ID").value;theList.ajaxAdder("meta", "newmeta");', e); };25 document.getElementById('updatemetasub').onclick = function(e) {return killSubmit('theList.inputData+="&id="+document.getElementById("post_ID").value;theList.ajaxAdder("meta", "newmeta");', e); };24 $('metakeyinput').onkeypress = function(e) {return killSubmit('theList.inputData+="&id="+$("post_ID").value;theList.ajaxAdder("meta", "newmeta");', e); }; 25 $('updatemetasub').onclick = function(e) {return killSubmit('theList.inputData+="&id="+$("post_ID").value;theList.ajaxAdder("meta", "newmeta");', e); }; 26 26 }
Note: See TracChangeset
for help on using the changeset viewer.