Commit 875a5fdc by Masaru Abe

パフォーマンス対応

parent 8cf3f138
...@@ -3029,12 +3029,13 @@ COMMON.setResourceVersionData = function(conId) { ...@@ -3029,12 +3029,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) {
...@@ -3050,9 +3051,9 @@ COMMON.setResourceVersionData = function(conId) { ...@@ -3050,9 +3051,9 @@ COMMON.setResourceVersionData = function(conId) {
flag = true; flag = true;
break; break;
} }
else { //else {
flag = false; // flag = false;
} //}
} }
if (!flag) { if (!flag) {
...@@ -3074,13 +3075,14 @@ COMMON.setMetaVersionData = function(conId) { ...@@ -3074,13 +3075,14 @@ 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') { //if (ClientData.MetaVersion().length <= 0 || ClientData.MetaVersion() == null || ClientData.MetaVersion() == 'undefined') {
tempMetaArr = []; // tempMetaArr = [];
} //}
else { //else {
tempMetaArr = ClientData.MetaVersion(); // tempMetaArr = ClientData.MetaVersion();
} //}
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) {
tempMeta = COMMON.metaVersionArr[i].metaversion; tempMeta = COMMON.metaVersionArr[i].metaversion;
...@@ -3095,9 +3097,9 @@ COMMON.setMetaVersionData = function(conId) { ...@@ -3095,9 +3097,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