[前端] 修改announcement模块轻微问题

1. 去掉翻页函数多余的参数
2.去掉新增公告刷新函数调用时多传的参数
3.去掉模板空的style标签
[CI SKIP]
This commit is contained in:
sxw 2015-08-08 17:11:36 +08:00
parent 4578426f99
commit 94fecc14f3
2 changed files with 3 additions and 6 deletions

View File

@ -24,12 +24,12 @@ require(["jquery", "avalon", "csrf", "bs_alert", "editor", "validation"], functi
else
return "隐藏";
},
getNext: function (el) {
getNext: function () {
if (!vm.next_page)
return;
getPageData(vm.page + 1);
},
getPrevious: function (el) {
getPrevious: function () {
if (!vm.previous_page)
return;
getPageData(vm.page - 1);
@ -156,8 +156,7 @@ require(["jquery", "avalon", "csrf", "bs_alert", "editor", "validation"], functi
bs_alert("提交成功!");
$("#title").val("");
announcementEditor.setValue("");
getPageData(1, function (data) {
});
getPageData(1);
} else {
bs_alert(data.data);
}

View File

@ -1,5 +1,3 @@
<style></style>
<div ms-controller="announcement" class="col-md-9">
<h1>Announcement</h1>
<table class="table table-striped">