确定 contest list vm 中的通用方法

This commit is contained in:
virusdefender 2015-10-29 14:23:53 +08:00
parent 1cecb542d9
commit ff0697ad7f

View File

@ -20,6 +20,14 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "editor", "datetimePicker",
search: function () { search: function () {
getPage(1); getPage(1);
avalon.vmodels.contestListPager.currentPage = 1; avalon.vmodels.contestListPager.currentPage = 1;
},
editContest: function(contestId){
avalon.vmodels.admin.contestId = contestId;
// todo 修改template_url
},
showContestProblems: function(contestId){
// todo
} }
}) })
} }