|  | @@ -2,8 +2,8 @@
 | 
	
		
			
				|  |  |   * 通知管理初始化
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  var Notice = {
 | 
	
		
			
				|  |  | -    id: "NoticeTable",	//表格id
 | 
	
		
			
				|  |  | -    seItem: null,		//选中的条目
 | 
	
		
			
				|  |  | +    id: "NoticeTable", //表格id
 | 
	
		
			
				|  |  | +    seItem: null, //选中的条目
 | 
	
		
			
				|  |  |      table: null,
 | 
	
		
			
				|  |  |      layerIndex: -1
 | 
	
		
			
				|  |  |  };
 | 
	
	
		
			
				|  | @@ -46,7 +46,7 @@ Notice.openAddNotice = function () {
 | 
	
		
			
				|  |  |          area: ['800px', '500px'], //宽高
 | 
	
		
			
				|  |  |          fix: false, //不固定
 | 
	
		
			
				|  |  |          maxmin: true,
 | 
	
		
			
				|  |  | -        content: Feng.ctxPath + '/notice/notice_add'
 | 
	
		
			
				|  |  | +        content: Feng.ctxPath + '/admin/notice/add'
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |      this.layerIndex = index;
 | 
	
		
			
				|  |  |  };
 | 
	
	
		
			
				|  | @@ -62,7 +62,7 @@ Notice.openNoticeDetail = function () {
 | 
	
		
			
				|  |  |              area: ['800px', '420px'], //宽高
 | 
	
		
			
				|  |  |              fix: false, //不固定
 | 
	
		
			
				|  |  |              maxmin: true,
 | 
	
		
			
				|  |  | -            content: Feng.ctxPath + '/notice/notice_update/' + Notice.seItem.id
 | 
	
		
			
				|  |  | +            content: Feng.ctxPath + '/admin/notice/edit/id/' + Notice.seItem.id
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |          this.layerIndex = index;
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -74,14 +74,14 @@ Notice.openNoticeDetail = function () {
 | 
	
		
			
				|  |  |  Notice.delete = function () {
 | 
	
		
			
				|  |  |      if (this.check()) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        var operation = function(){
 | 
	
		
			
				|  |  | -            var ajax = new $ax(Feng.ctxPath + "/notice/delete", function (data) {
 | 
	
		
			
				|  |  | +        var operation = function () {
 | 
	
		
			
				|  |  | +            var ajax = new $ax(Feng.ctxPath + "/admin/notice/delete", function (data) {
 | 
	
		
			
				|  |  |                  Feng.success("删除成功!");
 | 
	
		
			
				|  |  |                  Notice.table.refresh();
 | 
	
		
			
				|  |  |              }, function (data) {
 | 
	
		
			
				|  |  |                  Feng.error("删除失败!" + data.responseJSON.message + "!");
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  | -            ajax.set("noticeId", Notice.seItem.id);
 | 
	
		
			
				|  |  | +            ajax.set("id", Notice.seItem.id);
 | 
	
		
			
				|  |  |              ajax.start();
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -89,16 +89,16 @@ Notice.delete = function () {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -Notice.top = function(){
 | 
	
		
			
				|  |  | +Notice.top = function () {
 | 
	
		
			
				|  |  |      if (this.check()) {
 | 
	
		
			
				|  |  | -        var operation = function(){
 | 
	
		
			
				|  |  | -            var ajax = new $ax(Feng.ctxPath + "/notice/top", function (data) {
 | 
	
		
			
				|  |  | +        var operation = function () {
 | 
	
		
			
				|  |  | +            var ajax = new $ax(Feng.ctxPath + "/admin/notice/top", function (data) {
 | 
	
		
			
				|  |  |                  Feng.success("置顶成功!");
 | 
	
		
			
				|  |  |                  Notice.table.refresh();
 | 
	
		
			
				|  |  |              }, function (data) {
 | 
	
		
			
				|  |  |                  Feng.error("置顶成功!" + data.responseJSON.message + "!");
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  | -            ajax.set("noticeId", Notice.seItem.id);
 | 
	
		
			
				|  |  | +            ajax.set("id", Notice.seItem.id);
 | 
	
		
			
				|  |  |              ajax.start();
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -118,7 +118,7 @@ Notice.search = function () {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  $(function () {
 | 
	
		
			
				|  |  |      var defaultColunms = Notice.initColumn();
 | 
	
		
			
				|  |  | -    var table = new BSTable(Notice.id, "/notice/list", defaultColunms);
 | 
	
		
			
				|  |  | -    table.setPaginationType("client");
 | 
	
		
			
				|  |  | +    var table = new BSTable(Notice.id, "/admin/notice/list", defaultColunms);
 | 
	
		
			
				|  |  | +    //table.setPaginationType("client");
 | 
	
		
			
				|  |  |      Notice.table = table.init();
 | 
	
		
			
				|  |  |  });
 |