X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/744ca00ccd1e7fda9d4210b18c1f4a734f3b2261..293b52241445edf9eb86e0a0f9b63fccc3aa7fbd:/apps/workbench/app/helpers/application_helper.rb diff --git a/apps/workbench/app/helpers/application_helper.rb b/apps/workbench/app/helpers/application_helper.rb index f8bb589909..d844350927 100644 --- a/apps/workbench/app/helpers/application_helper.rb +++ b/apps/workbench/app/helpers/application_helper.rb @@ -268,7 +268,7 @@ module ApplicationHelper "data-pk" => "{id: \"#{object.uuid}\", key: \"#{object.class.to_s.underscore}\"}", "data-showbuttons" => "false", "data-value" => attrvalue, - :class => "editable #{'required' if required}", + :class => "editable #{'required' if required} form-control", :id => id }.merge(htmloptions) @@ -278,7 +278,7 @@ module ApplicationHelper lt += raw("add_form_selection_sources(#{selectables.to_json});\n") end - lt += raw("$('##{id}').editable({source: function() { return select_form_sources('#{dataclass}'); } });\n") + lt += raw("$('[data-name=\"#{dn}\"]').editable({source: function() { return select_form_sources('#{dataclass}'); } });\n") lt += raw("")