includes/clientside/static/comments.js
changeset 827 2c20563245b2
parent 825 9d5c04c1414f
parent 823 4596c40aaa94
child 888 35db370104ab
equal deleted inserted replaced
826:dcf5381ce8ba 827:2c20563245b2
    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