mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-06 04:21:51 +00:00
[前端] 修改announcement模块轻微问题
1. 去掉翻页函数多余的参数 2.去掉新增公告刷新函数调用时多传的参数 3.去掉模板空的style标签 [CI SKIP]
This commit is contained in:
parent
4578426f99
commit
94fecc14f3
@ -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);
|
||||
}
|
||||
|
@ -1,5 +1,3 @@
|
||||
<style></style>
|
||||
|
||||
<div ms-controller="announcement" class="col-md-9">
|
||||
<h1>Announcement</h1>
|
||||
<table class="table table-striped">
|
||||
|
Loading…
Reference in New Issue
Block a user