var __systemArticleList_ServicesHelper = null; var __pageIndex = 1; var __pageSize = 20; var __listType = "simply"; var __onlyData = false; $(function() { __systemArticleList_ServicesHelper = EnjooSite.Web.WebServices.SystemArticleList_ServicesHelper; getArticles(__systemArticleCategoryId, __pageIndex, __pageSize, __onlyData, __listType) }); function getArticles(E, A, B, C, D) { __systemArticleList_ServicesHelper.GetArticles(E, A, B, C, D, getArticles_success, ajax_error, { pageIndex: A }) } function getArticles_success(result, userContext, methodName) { var articles = eval("(" + result.Data + ")"); var pageIndex = userContext.pageIndex; var pageCount = articles.pageCount; $("#artilceListContainer").empty(); if (__onlyData == false) { $("#artilceListContainer").setTemplate(result.Template) } $("#artilceListContainer").processTemplate(articles); $("#articlePager").pager({ pagenumber: pageIndex, pagecount: pageCount, buttonClickCallback: function(newPageIndex) { getArticles(__systemArticleCategoryId, newPageIndex, __pageSize, __onlyData, __listType) } }); __onlyData = true } function ajax_error(B, C, A) { alert(B.get_message()) } if (typeof (Sys) !== "undefined") { Sys.Application.notifyScriptLoaded() };