$id<\/a> ",i=i.replaceAll("$id",r);JS.setHTML("divPage",i.trim())}function showEntryForm(n){var t="",r=null,i=n<1;_newEntry=i;JS.setCheckBox("chkNewEntry",i);i?t="Fg2kCJvarnoulBUaSxeOBQ==":(t="SURLwLmxPRQokxl+vGoAgw==",r=[n]);processAjax(t,r,getEntryResult)}function getEntryResult(n){if(_entry=n,JS.bindToPage(_entry),_entry.id<1){var t=document.getElementById("chkIsActive");t!=null&&(t.checked=!0)}_dialogEntry.dialog("open")}function hideEntryForm(){_dialogEntry.dialog("close")}function refreshPage(){JS.gotoUrl("demo?page="+_pageId)}function getAllReplies(n){_entryId=n;processAjax("CqP4uRw1aSXoeqKtVB8fCQ==",[_entryId],getRepliesResult)}function getRepliesResult(n){var r="No replies are found.<\/div>",i;if(n.length>0){r="
";var u,t;for(i=0;iedit<\/a> • delete<\/a> | Posted by $name<\/b> on {0}<\/b> | modified: {1}<\/b><\/small> $message<\/td><\/tr>",i%2==1&&(t=t.replaceAll(""," ")),t=JS.stringFormat(t,JS.getDateFromAspNet(u.createdDate).format("MM/dd/yyyy HH:mm:ss"),JS.getDateFromAspNet(u.updatedDate).format("MM/dd/yyyy HH:mm:ss")),r+=JS.getTextByObject(t,u);r+="<\/table>"}JS.setHTML("divReply",r);JS.showModalByElementId("divReplyModal","Replies",["Close"],handleReply,600,500)}function handleReply(){JS.msgboxClose()}var _entry,_entryId,_pageId=JS.getQueryString("page",1),_numPerPage=5,_newEntry=!1,_dialogEntry=$("#divEntryForm").dialog({autoOpen:!1,height:350,width:400,modal:!0,buttons:{Cancel:hideEntryForm,Save:saveEntryForm},close:function(){}});getAllEntries()
|