[前端-后台]再次修改部分措辞,修改boolen值的显示方法(再次改进)[CI SKIP]

This commit is contained in:
esp
2015-08-27 15:30:11 +08:00
parent f3b88e85fc
commit 979a2070cd
7 changed files with 9 additions and 22 deletions

View File

@@ -26,10 +26,6 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "editor", "validator"],
showGlobalViewRadio: true,
isGlobal: true,
allGroups: [],
getYesOrNo: function(yORn) {
if (yORn) return "是";
return "否";
},
getNext: function () {
if (!vm.nextPage)
return;
@@ -47,7 +43,6 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "editor", "validator"],
else {
return vm.previousPage ? "btn btn-primary" : "btn btn-primary disabled";
}
},
editAnnouncement: function (announcement) {
vm.newTitle = announcement.title;

View File

@@ -245,10 +245,6 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "editor", "datetimePicker",
if (el)
problemId = el.id;
vm.$fire("up!showContestSubmissionPage", problemId, vm.contestList[vm.editingProblemContestIndex-1].id, vm.editMode);
},
getYesOrNo: function(yORn) {
if (yORn) return "是";
return "否";
}
});
vm.$watch("showVisibleOnly", function() {

View File

@@ -41,10 +41,6 @@ require(["jquery", "avalon", "csrfToken", "bsAlert"], function ($, avalon, csrfT
},
showProblemSubmissionPage: function(problemId){
vm.$fire("up!showProblemSubmissionPage", problemId);
},
getYesOrNo: function(yORn) {
if (yORn) return "是";
return "否";
}
});
vm.$watch("showVisibleOnly", function () {