Skip to content

Commit

Permalink
[RJA-2712][fix] - Running workflows: JS error while trying Create/Upg…
Browse files Browse the repository at this point in the history
…rade instance
  • Loading branch information
rsvato committed Aug 13, 2013
1 parent dbd8e44 commit a5dc83e
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@

function disabled(variable, group) {
var grp = variable.group;
var defaultVar = group.defVariable || '';
var defaultVar;
if (group) {
defaultVar = group.defVariable;
}
return !_.size(variable.values) && !grp || grp && variable.name !== defaultVar ? 'disabled="disabled"' : '';
}

function disabledInput(variable, group) {
var grp = variable.group;
var defaultVar = group.defVariable || '';
var defaultVar;
if (group) {
defaultVar = group.defVariable;
}
return grp && variable.name !== defaultVar ? 'disabled="disabled"' : ''
}

Expand Down

0 comments on commit a5dc83e

Please sign in to comment.