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