Commit 852e7c32 by Masaru Abe

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

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