/* Gopay发布系统用Js文件，页面个性化脚本勿写入此文件 */

$(function (){
	$.ajaxSetup({cache:false});
});

// 取得栏目文章列表
function getChannelContent(divId, channelId) {
	var url = $("#contentPath").val()+ "/cms/getChannelContent.htm";
	$.ajax( {
		type : "POST",
		url : url,
		dataType : "text",
		data : {
			channelId : channelId
		},
		success : function(msg) {
			$("#" + divId).append(msg);
		}
	});
}

// 取得栏目文章列表，支持翻页，依赖刘健翻页组件
function getChannelContentSupportPageNav(divId, channelId) {
	var url = $("#contentPath").val()+ "/cms/getChannelContentSupportPageNav.htm";
	$('#psPagenum').pagination(
		{
			number : 20,
			src : url,
			data : {divId:divId, channelId:channelId}
		},
		function(item) {
			return item.rowData;
		});
}