Changeset 5529

Show
Ignore:
Timestamp:
03/05/08 00:34:17 (7 months ago)
Author:
inureyes
Message:

#798

  • 댓글 저장 중에도 중복저장 되지 않도록 함.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/script/common2.js

    r5517 r5529  
    986986} 
    987987 
     988var commentSavingNow = false; 
    988989function addComment(caller, entryId) { 
     990    if(commentSavingNow == true) { 
     991        alert(_t('저장하고 있습니다.')); 
     992        return false; 
     993    } 
    989994    var oForm = findFormObject(caller); 
    990995    if (!oForm) 
     
    9961001    var request = new HTTPRequest("POST", oForm.action); 
    9971002    request.onSuccess = function () { 
     1003        commentSavingNow = false; 
    9981004        document.getElementById("entry" + entryId + "Comment").innerHTML = this.getText("/response/commentBlock"); 
    9991005        if(getObject("recentComments") != null) 
     
    10051011    } 
    10061012    request.onError = function() { 
     1013        commentSavingNow = false; 
    10071014        alert(this.getText("/response/description")); 
    10081015    } 
     
    10811088        } 
    10821089    } 
     1090    commentSavingNow = true; 
    10831091    request.send(queryString); 
    10841092}