원본출처 | http://mnb.moneyweek.co.kr/mnbview.php?no=2015042609158036094
댓글
| 총 29개
cntsft.require( "service/gaia/CommentReplyController" ).run( function(){
new ruliweb.CommentReplyController({
formName: "updateCommentForm",
replyFormTempId: "recommentInputTableRowTemplate",
replyButtons: daum.$A(daum.$$(".new_cmt .list_cmt .btn_reply"))
});
});
(function(){
var commentElemWrapper = daum.$$(".recomment .box_txt_area")[0],
commentMsgElem = daum.$$(".message", commentElemWrapper)[0],
commentElem = daum.$('recomment');
function showMsg() { daum.removeClassName(commentElemWrapper, 'hasval'); }
function hideMsg() { daum.addClassName(commentElemWrapper, 'hasval'); }
daum.addEvent(commentMsgElem, 'click', function() {
commentElem.focus();
});
daum.addEvent(commentElem, "focus", function() {
hideMsg();
});
daum.addEvent(commentElem, "blur", function() {
var value = this.value.replace(/^\s+|\s+$/g, "");
if (value.length === 0) {
showMsg();
}
});
}());
|