includes/clientside/static/comments.js
changeset 823 4596c40aaa94
parent 779 609e35845ec3
child 827 2c20563245b2
equal deleted inserted replaced
822:3b951ea8e758 823:4596c40aaa94
    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