‘); $ ( ‘#comment -’ + Id + ‘_ ecm_news_4610 div.comment-text & gt; div.replyTo’) append (form);. }}} Function editCommentMessage_ecm_news_4610 (id) {if ($ ( ‘#comment -’. + Id + ‘_ ecm_news_4610′) length) {if ($ ( ‘#comment -’ + id + ‘_ ecm_news_4610 div.editForm’) length.) CloseCommentMessageForm_ecm_news_4610 (id); else {var form = $ ( ‘# comment_message_edit_form_ecm_news_4610 & gt; div: first’) clone ();. $ ( ‘.close_btn’, Form) .click (function () {closeCommentMessageForm_ecm_news_4610 (id);}); $ ( ‘.edit_messasge_id’, Form) .val (id); $ ( ‘.comment_message_textarea’, Form) .val ($ ( ‘#comment_message_edit_text _’ + id + ‘_ ecm_news_4610′) text ().); $ ( ‘#comment -’ + Id + ‘_ ecm_news_4610 div.comment-text’) append ( ”).; $ ( ‘#comment -’ + Id + ‘_ ecm_news_4610 div.comment-text & gt; div.editForm’) append (form);. }}} Function submitCommentMessageForm_ecm_news_4610 (form) {$ (form) .mask (); $ ( ‘Div.errorSummary’, form) .remove (); $ .post ($ (Form) .attr ( ‘action’), $ (form) .serializeArray (), function (data) {if (typeof (data.success) == ‘undefined’ || data.success == ‘N’) {$ (form) .prepend (data.errorSummaryHtml);} else {$ ( ‘.comment_message_textarea’, form) .val ( ”); $ ( ‘# message_list_box_ecm_news_4610′) replaceWith (data.messageListHtml). ; $ ( ‘# msg_wrapper_ecm_news_4610′) parent () trigger ( ‘commentChange’);..} $


No comments:
Post a Comment