|
@@ -363,8 +363,8 @@ define([ "require", "utils/Utils", "modules/Modal", "utils/Messages", "utils/Enu
|
|
|
}, CommonViewFunction.createEditGlossaryCategoryTermSubmit = function(options) {
|
|
|
if (options) var ref = options.ref, modal = options.modal, model = options.model, node = options.node, isTermView = options.isTermView, isCategoryView = options.isCategoryView, collection = options.collection, isGlossaryView = options.isGlossaryView, data = ref.ui[isGlossaryView ? "glossaryForm" : "categoryTermForm"].serializeArray().reduce(function(obj, item) {
|
|
|
return obj[item.name] = item.value.trim(), obj;
|
|
|
- }, {}), newModel = new options.collection.model(), messageType = "Glossary ";
|
|
|
- isTermView ? messageType = "Term " : isCategoryView && (messageType = "Category ");
|
|
|
+ }, {}), newModel = new options.collection.model(), messageType = "术语表 ";
|
|
|
+ isTermView ? messageType = "术语 " : isCategoryView && (messageType = "分类 ");
|
|
|
var ajaxOptions = {
|
|
|
silent: !0,
|
|
|
success: function(rModel, response) {
|
|
@@ -401,7 +401,7 @@ define([ "require", "utils/Utils", "modules/Modal", "utils/Messages", "utils/Enu
|
|
|
options.model), newModel = new options.collection.model(), noticeRef = null, ajaxOptions = {
|
|
|
success: function(rModel, response) {
|
|
|
noticeRef && noticeRef.remove(), Utils.notifySuccess({
|
|
|
- content: (isCategoryView || isEntityView ? "Term" : "Category") + " association is removed successfully"
|
|
|
+ content: (isCategoryView || isEntityView ? "术语" : "分类") + " 连接已成功删除"
|
|
|
}), options.callback && options.callback();
|
|
|
},
|
|
|
cust_error: function() {
|