Browse Source

UI-2562: Fix scope issue when declaring variable

4.3
Joris Tirado 9 years ago
parent
commit
08387fa561
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      submodules/devices/devices.js

+ 3
- 3
submodules/devices/devices.js View File

@ -318,11 +318,11 @@ define(function(require){
var section = '.tabs-section[data-section="' + value.type + '"] ';
_.each(value.data, function(val, key) {
var group = '.control-group[data-id="' + key + '"] ',
value = '.feature-key-value[data-type="' + val.type + '"]';
var groupSelector = '.control-group[data-id="' + key + '"] ',
valueSelector = '.feature-key-value[data-type="' + val.type + '"]';
templateDevice
.find(section.concat(group, value))
.find(section.concat(groupSelector, valueSelector))
.addClass('active')
.find('[name="provision.keys.' + value.id + '[' + key + '].value"]')
.val(val.value);


Loading…
Cancel
Save