From 4fd800877d585099662729db1cb4f630eabd21c4 Mon Sep 17 00:00:00 2001 From: balamurugang Date: Fri, 26 Feb 2016 16:19:23 +0530 Subject: [PATCH] Edit window is sometimes empty - Fixed Issue: The function was declear as a globle scope. When a function is decleared without a var, it is considered as global scope. because of that the function from one page is overwriting the function in another page. Fix: Made the function with the declaration as var, so that it will be turning to a local function and wont overwright the current page function. Closes-Bug: #1549806 Please enter the commit message for your changes. Lines starting Change-Id: I8f5e452ab6eb93848ac5135855e23d0839e1f7b2 --- .../config/networking/policy/ui/js/views/policyEditView.js | 4 ++-- .../routingpolicy/ui/js/views/routingPolicyEditView.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webroot/config/networking/policy/ui/js/views/policyEditView.js b/webroot/config/networking/policy/ui/js/views/policyEditView.js index 0a974975f..88a102f89 100644 --- a/webroot/config/networking/policy/ui/js/views/policyEditView.js +++ b/webroot/config/networking/policy/ui/js/views/policyEditView.js @@ -334,7 +334,7 @@ define([ ) } }); - fqnameDisplayFormat = function(fqname, selectedDomain, selectedProject) { + var fqnameDisplayFormat = function(fqname, selectedDomain, selectedProject) { var returnText = ""; returnText = getValueByJsonPath(fqname, "2", ""); if(returnText != "" && ( @@ -345,7 +345,7 @@ define([ return returnText; } - getConfigureViewConfig = function(isDisable, allData) { + var getConfigureViewConfig = function(isDisable, allData) { return { elementId: cowu.formatElementId( [prefixId, ctwl.TITLE_EDIT_POLICY]), diff --git a/webroot/config/networking/routingpolicy/ui/js/views/routingPolicyEditView.js b/webroot/config/networking/routingpolicy/ui/js/views/routingPolicyEditView.js index d6902d5a4..a085509b1 100644 --- a/webroot/config/networking/routingpolicy/ui/js/views/routingPolicyEditView.js +++ b/webroot/config/networking/routingpolicy/ui/js/views/routingPolicyEditView.js @@ -142,7 +142,7 @@ define([ } }); - getConfigureViewConfig = function (isDisable) { + var getConfigureViewConfig = function (isDisable) { return { elementId: cowu.formatElementId( [prefixId, ctwl.TITLE_ROUTING_POLICY_EDIT]),