equal
deleted
inserted
replaced
17 parms.page_id = pid[0]; |
17 parms.page_id = pid[0]; |
18 parms.namespace = pid[1]; |
18 parms.namespace = pid[1]; |
19 if(comment_template) |
19 if(comment_template) |
20 parms.have_template = true; |
20 parms.have_template = true; |
21 parms = ajaxEscape(toJSONString(parms)); |
21 parms = ajaxEscape(toJSONString(parms)); |
22 ajaxPost(stdAjaxPrefix+'&_mode=comments', 'data=' + parms, function() { |
22 ajaxPost(stdAjaxPrefix+'&_mode=comments', 'data=' + parms, function(ajax) { |
23 if ( ajax.readyState == 4 && ajax.status == 200 ) { |
23 if ( ajax.readyState == 4 && ajax.status == 200 ) { |
24 unsetAjaxLoading(); |
24 unsetAjaxLoading(); |
25 selectButtonMajor('discussion'); |
25 selectButtonMajor('discussion'); |
26 unselectAllButtonsMinor(); |
26 unselectAllButtonsMinor(); |
27 // IE compatibility - doing ajax.responseText.substr() doesn't work |
27 // IE compatibility - doing ajax.responseText.substr() doesn't work |