Skip to content

Commit

Permalink
Edit window is sometimes empty - Fixed
Browse files Browse the repository at this point in the history
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
  • Loading branch information
balamurugang committed Feb 26, 2016
1 parent 21fd314 commit 3d7891a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -334,7 +334,7 @@ define([
)
}
});
fqnameDisplayFormat = function(fqname, selectedDomain, selectedProject) {
var fqnameDisplayFormat = function(fqname, selectedDomain, selectedProject) {
var returnText = "";
returnText = getValueByJsonPath(fqname, "2", "");
if(returnText != "" && (
Expand All @@ -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]),
Expand Down
Expand Up @@ -142,7 +142,7 @@ define([
}
});

getConfigureViewConfig = function (isDisable) {
var getConfigureViewConfig = function (isDisable) {
return {
elementId: cowu.formatElementId(
[prefixId, ctwl.TITLE_ROUTING_POLICY_EDIT]),
Expand Down

0 comments on commit 3d7891a

Please sign in to comment.