includes/clientside/static/comments.js
changeset 407 35d94240a197
parent 359 e0787bb6285b
child 420 301f546688d1
equal deleted inserted replaced
406:7468a663315f 407:35d94240a197
    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 + '';