[前端]统一admin中js命名方式. 为提交列表添加返回按钮[CI SKIP]

This commit is contained in:
esp 2015-08-25 12:21:31 +08:00
parent b9f5aeb773
commit 4881637c79
12 changed files with 16 additions and 8 deletions

View File

@ -1,4 +1,4 @@
require(["jquery", "avalon", "csrfToken", "bsAlert", "formValidation"], function ($, avalon, csrfTokenHeader, bsAlert) {
require(["jquery", "avalon", "csrfToken", "bsAlert"], function ($, avalon, csrfTokenHeader, bsAlert) {
avalon.ready(function () {
avalon.vmodels.submissionList = null;
@ -41,9 +41,11 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "formValidation"], function
getPage: function (page_index) {
getPageData(page_index);
},
showSubmissionDetailPage: function (submissionId) {
},
showProblemListPage: function(){
vm.$fire("up!showProblemListPage");
}
});

View File

@ -103,4 +103,4 @@
</form>
</div>
<script src="/static/js/app/admin/contest/add_contest.js"></script>
<script src="/static/js/app/admin/contest/addContest.js"></script>

View File

@ -185,4 +185,4 @@
</div>
<script src="/static/js/app/admin/contest/contest_list.js"></script>
<script src="/static/js/app/admin/contest/contestList.js"></script>

View File

@ -135,4 +135,4 @@
</form>
</div>
<script src="/static/js/app/admin/contest/edit_problem.js"></script>
<script src="/static/js/app/admin/contest/editProblem.js"></script>

View File

@ -134,4 +134,4 @@
</form>
</div>
<script src="/static/js/app/admin/problem/add_problem.js"></script>
<script src="/static/js/app/admin/problem/addProblem.js"></script>

View File

@ -140,4 +140,4 @@
</form>
</div>
<script src="/static/js/app/admin/problem/edit_problem.js"></script>
<script src="/static/js/app/admin/problem/editProblem.js"></script>

View File

@ -1,4 +1,10 @@
<div ms-controller="submissionList" class="col-md-9">
<nav>
<ul class="pager">
<li class="previous" ms-click="showProblemListPage()"><a href="javascript:void(0)"><span
aria-hidden="true">&larr;</span> 返回</a></li>
</ul>
</nav>
<h1>提交列表</h1>
<table class="table table-striped">
@ -25,4 +31,4 @@
<button ms-attr-class="getBtnClass('next')" ms-click="getNext">下一页</button>
</div>
</div>
<script src="/static/js/app/admin/problem/submission_list.js"></script>
<script src="/static/js/app/admin/problem/submissionList.js"></script>