Commit 852e7c32 by Masaru Abe

#17533 パフォーマンス対応仕上げ

parent 1fcbc6ba
......@@ -3040,12 +3040,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 {
tempResourceArr = ClientData.ResourceVersion();
}
//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) {
......@@ -3061,9 +3062,9 @@ COMMON.setResourceVersionData = function(conId) {
flag = true;
break;
}
else {
flag = false;
}
//else {
// flag = false;
//}
}
if (!flag) {
......@@ -3085,12 +3086,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 {
tempMetaArr = ClientData.MetaVersion();
}
tempMetaArr = ClientData.MetaVersion();
//if (ClientData.MetaVersion().length <= 0 || ClientData.MetaVersion() == null || ClientData.MetaVersion() == 'undefined') {
// tempMetaArr = [];
//}
//else {
// tempMetaArr = ClientData.MetaVersion();
//}
for (var i = 0; i < COMMON.metaVersionArr.length; i++) {
if (COMMON.metaVersionArr[i].contentid == conId) {
......@@ -3106,9 +3108,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