|
@@ -90,7 +90,7 @@ define([ "require", "backbone", "hbs!tmpl/tag/TagLayoutView_tmpl", "utils/Utils"
|
|
|
var name = Utils.getName(model.toJSON(), "name");
|
|
|
treeStr += "<option>" + name + "</option>";
|
|
|
}), that.ui.treeLov.html(treeStr), that.ui.treeLov.select2({
|
|
|
- placeholder: "Search Classification",
|
|
|
+ placeholder: "搜索分类",
|
|
|
allowClear: !0
|
|
|
});
|
|
|
},
|
|
@@ -243,7 +243,7 @@ define([ "require", "backbone", "hbs!tmpl/tag/TagLayoutView_tmpl", "utils/Utils"
|
|
|
selectedTag: name,
|
|
|
enumDefCollection: enumDefCollection
|
|
|
}), modal = new Modal({
|
|
|
- title: "Create a new classification",
|
|
|
+ title: "创建一个新的分类",
|
|
|
content: view,
|
|
|
cancelText: "Cancel",
|
|
|
okCloses: !1,
|
|
@@ -257,7 +257,7 @@ define([ "require", "backbone", "hbs!tmpl/tag/TagLayoutView_tmpl", "utils/Utils"
|
|
|
}), modal.on("shownModal", function() {
|
|
|
view.ui.parentTag.select2({
|
|
|
multiple: !0,
|
|
|
- placeholder: "Search Classification",
|
|
|
+ placeholder: "搜索分类",
|
|
|
allowClear: !0
|
|
|
});
|
|
|
}), modal.on("ok", function() {
|
|
@@ -339,7 +339,7 @@ define([ "require", "backbone", "hbs!tmpl/tag/TagLayoutView_tmpl", "utils/Utils"
|
|
|
}));
|
|
|
}), that.collection.fullCollection.add(classificationDefs), that.setUrl("#!/tag/tagAttribute/" + ref.ui.tagName.val() + "?tag=" + ref.ui.tagName.val(), !0),
|
|
|
Utils.notifySuccess({
|
|
|
- content: "Classification " + that.name + Messages.getAbbreviationMsg(!1, "addSuccessMessage")
|
|
|
+ content: "分类 " + that.name + Messages.getAbbreviationMsg(!1, "addSuccessMessage")
|
|
|
}), modal.trigger("cancel"), modal.$el.find("button.ok").hideButtonLoader(), that.changeLoaderState(!1),
|
|
|
that.typeHeaders.fetch({
|
|
|
reset: !0
|
|
@@ -374,7 +374,7 @@ define([ "require", "backbone", "hbs!tmpl/tag/TagLayoutView_tmpl", "utils/Utils"
|
|
|
contentClass: "tagPopoverOptions",
|
|
|
popoverOptions: {
|
|
|
content: function() {
|
|
|
- return "<ul><li class='listTerm' ><i class='fa fa-search'></i> <a href='javascript:void(0)' data-fn='onSearchTag'>Search Classification</a></li><li class='listTerm' ><i class='fa fa-plus'></i> <a href='javascript:void(0)' data-fn='onClickCreateTag'>Create Sub-classification</a></li><li class='listTerm' ><i class='fa fa-trash-o'></i> <a href='javascript:void(0)' data-fn='onDeleteTag'>Delete Classification</a></li></ul>";
|
|
|
+ return "<ul><li class='listTerm' ><i class='fa fa-search'></i> <a href='javascript:void(0)' data-fn='onSearchTag'>搜索分类</a></li><li class='listTerm' ><i class='fa fa-plus'></i> <a href='javascript:void(0)' data-fn='onClickCreateTag'>创建子分类</a></li><li class='listTerm' ><i class='fa fa-trash-o'></i> <a href='javascript:void(0)' data-fn='onDeleteTag'>删除分类</a></li></ul>";
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -401,7 +401,7 @@ define([ "require", "backbone", "hbs!tmpl/tag/TagLayoutView_tmpl", "utils/Utils"
|
|
|
},
|
|
|
okCloses: !1,
|
|
|
cancel: function(argument) {}
|
|
|
- }, text = "Are you sure you want to delete the classification";
|
|
|
+ }, text = "确定删除该分类?";
|
|
|
notifyObj.text = text, Utils.notifyConfirm(notifyObj);
|
|
|
},
|
|
|
onNotifyOk: function(data) {
|
|
@@ -414,7 +414,7 @@ define([ "require", "backbone", "hbs!tmpl/tag/TagLayoutView_tmpl", "utils/Utils"
|
|
|
typeName: that.tag,
|
|
|
success: function() {
|
|
|
if (Utils.notifySuccess({
|
|
|
- content: "Classification " + that.tag + Messages.getAbbreviationMsg(!1, "deleteSuccessMessage")
|
|
|
+ content: "分类 " + that.tag + Messages.getAbbreviationMsg(!1, "deleteSuccessMessage")
|
|
|
}), superTypeObj) {
|
|
|
var parentSubTypeUpdate = _.reject(superTypeObj.get("subTypes"), function(subtype) {
|
|
|
return subtype === that.tag;
|