app/assets/javascripts/input-connected.coffee in ui_bibz-2.0.0.alpha30 vs app/assets/javascripts/input-connected.coffee in ui_bibz-2.0.0.alpha31
- old
+ new
@@ -68,11 +68,12 @@
component.on events, (e) ->
e.preventDefault()
values = component.val()
name = component.attr('name')
- name = if name? then name.replace(' ', '_').split('[')[0] else "id"
- name = if Array.isArray(values) then "#{ name }s" else name
+ #name = if name? then name.replace(' ', '_').split('[')[0] else "id"
+ name = if name? then name else "id"
+ #name = if Array.isArray(values) then "#{ name }s" else name
if mode == "remote"
params = { "#{ name }": values }
$.ajax({ url: target.url, data: params }).done (data) ->
updateTargetComponent(data, componentTarget, component)