Authored by weiqingting

... ... @@ -250,6 +250,7 @@ $(document).on("change",".observe",function(){
obj[name]=$this.val();
});
});
$(document).on("click",".edit",function(){
var index=$(this).data("index");
var item=Bll.contentDatas[index];
... ... @@ -383,5 +384,6 @@ $(document).on("click","#submit",function(){
console.log("submit",option.data);
});
});
/*交互部分*/
... ...
... ... @@ -146,7 +146,7 @@ var g = new common.grid({
}
HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-primary btn-xs info-modify">编辑</a>');
HtmArr.push('<a data-index="' + items.__index + '" href="/guang/article/contentEdit/'+items.id+'" class="btn btn-primary btn-xs info-modify">编辑</a>');
HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-danger btn-xs info-del">删除</a>');
return HtmArr.join('');
... ...
... ... @@ -21,6 +21,9 @@
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-heading">
<a href="/guang/article/contentAdd" class="btn btn-success"><i class="fa fa-plus"></i> 添加资讯</a>
</div>
<div class="panel-body">
<div class="row">
<div class="panel-col">
... ...