app/assets/javascripts/input-connected.coffee in ui_bibz-2.0.10 vs app/assets/javascripts/input-connected.coffee in ui_bibz-2.1.0

- old
+ new

@@ -1,9 +1,8 @@ (($) -> updateOptionsHtml = (data, componentTarget) -> - console.log data componentTarget.children('option:not([value=""])').remove() if Array.isArray(data) appendToElement(data, componentTarget) else @@ -13,10 +12,10 @@ appendToElement(v, optgroup) componentTarget.append(optgroup) appendToElement = (data, element) -> data.forEach (opt) -> - element.append($("<option></option>").attr("value", opt.value || opt[1]).text(opt.text || opt[0])) + element.append($("<option></option>").attr("value", opt.value).text(opt.text)) updateTargetComponent = (data, componentTarget, component) -> updateOptionsHtml(data, componentTarget) updateTargetRefreshButton(componentTarget, component) componentTarget.multiSelect('refresh') if componentTarget.hasClass('multi-column-field')