Commit 875a5fdc by Masaru Abe

パフォーマンス対応

parent 8cf3f138
......@@ -3029,12 +3029,13 @@ COMMON.setResourceVersionData = function(conId) {
//check if insert new or edit
var flag = false;
if (ClientData.ResourceVersion().length <= 0 || ClientData.ResourceVersion() == null || ClientData.ResourceVersion() == 'undefined') {
tempResourceArr = [];
}
else {
//if (ClientData.ResourceVersion().length <= 0 || ClientData.ResourceVersion() == null || ClientData.ResourceVersion() == 'undefined') {
// tempResourceArr = [];
//}
//else {
// tempResourceArr = ClientData.ResourceVersion();
//}
tempResourceArr = ClientData.ResourceVersion();
}
for (var i = 0; i < COMMON.resourceVersionArr.length; i++) {
if (COMMON.resourceVersionArr[i].contentid == conId) {
......@@ -3050,9 +3051,9 @@ COMMON.setResourceVersionData = function(conId) {
flag = true;
break;
}
else {
flag = false;
}
//else {
// flag = false;
//}
}
if (!flag) {
......@@ -3074,12 +3075,13 @@ COMMON.setMetaVersionData = function(conId) {
//check if insert new or edit
var flag = false;
if (ClientData.MetaVersion().length <= 0 || ClientData.MetaVersion() == null || ClientData.MetaVersion() == 'undefined') {
tempMetaArr = [];
}
else {
//if (ClientData.MetaVersion().length <= 0 || ClientData.MetaVersion() == null || ClientData.MetaVersion() == 'undefined') {
// tempMetaArr = [];
//}
//else {
// tempMetaArr = ClientData.MetaVersion();
//}
tempMetaArr = ClientData.MetaVersion();
}
for (var i = 0; i < COMMON.metaVersionArr.length; i++) {
if (COMMON.metaVersionArr[i].contentid == conId) {
......@@ -3095,9 +3097,9 @@ COMMON.setMetaVersionData = function(conId) {
flag = true;
break;
}
else {
flag = false;
}
//else {
// flag = false;
//}
}
if (!flag) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment