From d5f6489b38769d1c4bac776e23ff192aaca57ee9 Mon Sep 17 00:00:00 2001 From: Ronald Ray Date: Thu, 18 Oct 2018 13:31:10 -0700 Subject: [PATCH] cassproject/cass-viewer#4 Disabled caring about collapse. --- js/cass-ui-fwk-aln/cui-fa-main.js | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/js/cass-ui-fwk-aln/cui-fa-main.js b/js/cass-ui-fwk-aln/cui-fa-main.js index ff9c8d1..f93be85 100644 --- a/js/cass-ui-fwk-aln/cui-fa-main.js +++ b/js/cass-ui-fwk-aln/cui-fa-main.js @@ -3207,16 +3207,16 @@ function generateFrameworkCompetencyData() { function handleCollapseFramework2ForAlignmentSuccess(frameworkId, fnpg) { debugMessage("Framework 2 collapsed:" + frameworkId); debugMessage(fnpg); - if (!frameworkCollapsedCorrectly(fnpg)) { - showPageError("Could not determine framework competencies (" + framework2Name + "). Check framework permissions."); - } - else if (doesFrameworkHaveCircularDependency(fnpg)) { - showPageError("Framework (" + framework2Name + ") contains a circular dependency. Cannot align."); - } - else { + // if (!frameworkCollapsedCorrectly(fnpg)) { + // showPageError("Could not determine framework competencies (" + framework2Name + "). Check framework permissions."); + // } + // else if (doesFrameworkHaveCircularDependency(fnpg)) { + // showPageError("Framework (" + framework2Name + ") contains a circular dependency. Cannot align."); + // } + // else { framework2PacketGraph = fnpg; generateFrameworkCompetencyData(); - } + // } } function handleCollapseFramework2ForAlignmentFailure(err) { @@ -3238,16 +3238,16 @@ function collapseFramework2ForAlignment() { function handleCollapseFramework1ForAlignmentSuccess(frameworkId, fnpg) { debugMessage("Framework 1 collapsed:" + frameworkId); debugMessage(fnpg); - if (!frameworkCollapsedCorrectly(fnpg)) { - showPageError("Could not determine framework competencies (" + framework1Name + "). Check framework permissions."); - } - else if (doesFrameworkHaveCircularDependency(fnpg)) { - showPageError("Framework (" + framework1Name + ") contains a circular dependency. Can not align."); - } - else { + // if (!frameworkCollapsedCorrectly(fnpg)) { + // showPageError("Could not determine framework competencies (" + framework1Name + "). Check framework permissions."); + // } + // else if (doesFrameworkHaveCircularDependency(fnpg)) { + // showPageError("Framework (" + framework1Name + ") contains a circular dependency. Can not align."); + // } + // else { framework1PacketGraph = fnpg; collapseFramework2ForAlignment(); - } + // } } function handleCollapseFramework1ForAlignmentFailure(err) {