mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
AJAX responsiveness improvements from mdawaffe. fixes #3099
git-svn-id: https://develop.svn.wordpress.org/trunk@4187 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
function customFieldsOnComplete() {
|
||||
var pidEl = document.getElementById('post_ID');
|
||||
function customFieldsOnComplete( what, where, update, transport ) {
|
||||
var pidEl = $('post_ID');
|
||||
pidEl.name = 'post_ID';
|
||||
pidEl.value = getNodeValue(theList.ajaxAdd.responseXML, 'postid');
|
||||
var aEl = document.getElementById('hiddenaction')
|
||||
pidEl.value = getNodeValue(transport.responseXML, 'postid');
|
||||
var aEl = $('hiddenaction')
|
||||
if ( aEl.value == 'post' ) aEl.value = 'postajaxpost';
|
||||
}
|
||||
addLoadEvent(customFieldsAddIn);
|
||||
@@ -21,6 +21,6 @@ function customFieldsAddIn() {
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById('metakeyinput').onkeypress = function(e) {return killSubmit('theList.inputData+="&id="+document.getElementById("post_ID").value;theList.ajaxAdder("meta", "newmeta");', e); };
|
||||
document.getElementById('updatemetasub').onclick = function(e) {return killSubmit('theList.inputData+="&id="+document.getElementById("post_ID").value;theList.ajaxAdder("meta", "newmeta");', 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); };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user