Changeset 5529
- Timestamp:
- 03/05/08 00:34:17 (7 months ago)
- Files:
-
- 1 modified
-
trunk/script/common2.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/script/common2.js
r5517 r5529 986 986 } 987 987 988 var commentSavingNow = false; 988 989 function addComment(caller, entryId) { 990 if(commentSavingNow == true) { 991 alert(_t('저장하고 있습니다.')); 992 return false; 993 } 989 994 var oForm = findFormObject(caller); 990 995 if (!oForm) … … 996 1001 var request = new HTTPRequest("POST", oForm.action); 997 1002 request.onSuccess = function () { 1003 commentSavingNow = false; 998 1004 document.getElementById("entry" + entryId + "Comment").innerHTML = this.getText("/response/commentBlock"); 999 1005 if(getObject("recentComments") != null) … … 1005 1011 } 1006 1012 request.onError = function() { 1013 commentSavingNow = false; 1007 1014 alert(this.getText("/response/description")); 1008 1015 } … … 1081 1088 } 1082 1089 } 1090 commentSavingNow = true; 1083 1091 request.send(queryString); 1084 1092 }
