Show
Ignore:
Timestamp:
01/28/08 03:52:37 (10 months ago)
Author:
inureyes
Message:

#798

  • 저장이 실패한 경우에 버튼이 비활성화 되는 문제 수정
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/view/replyEditorView.php

    r5064 r5161  
    4444                var oButton = document.getElementById('commentSubmit'); 
    4545                oButton.value = '<?php echo _text('저장중');?>'; 
     46                var tempOnClick = oButton.onclick; 
    4647                oButton.onclick = 'return false;'; 
    4748                trimAll(oForm); 
     
    4950if (!doesHaveMembership()) { 
    5051?> 
    51                 if (!checkValue(oForm.name, '<?php echo _text('이름을 입력해 주십시오.');?>')) return false; 
     52                if (!checkValue(oForm.name, '<?php echo _text('이름을 입력해 주십시오.');?>')) { 
     53                    oButton.value = '<?php echo _text('완료');?>'; 
     54                    oButton.onclick = tempOnClick;  
     55                    return false; 
     56                } 
    5257<?php  
    5358} 
    5459?> 
    55                 if (!checkValue(oForm.comment, '<?php echo _text('댓글을 입력해 주십시오.');?>')) return false; 
     60                if (!checkValue(oForm.comment, '<?php echo _text('댓글을 입력해 주십시오.');?>')) { 
     61                    oButton.value = '<?php echo _text('완료');?>'; 
     62                    oButton.onclick = tempOnClick;  
     63                    return false; 
     64                } 
    5665                oForm.submit(); 
    5766            }