Sha256: 692d0713c17d31026c56db6bb2712393520bfba3a783ec6ab27ba9c890cc7f8c

Contents?: true

Size: 586 Bytes

Versions: 4

Compression:

Stored size: 586 Bytes

Contents

$("#<%= @target %>").empty().append("<%=j render(:partial => 'fields', :locals => {:linkable => @linkable, :field_name => @field_name, :currently_linked => @currently_linked}) %>")

<% if @linkable.count >= Linkable::AJAX_COMBOBOX_MIN %>
$("#<%= @target %>").find("select[data-remote]").each ->
  $(this).ajaxChosen {method: "GET", url:$(this).data('remote'), dataType: 'json'}, (data) ->
    data
<% else %>
$("select:not([data-remote]):not(.datetime-selector)").chosen()
<% end %>

# localize messages and labels
# get rid of the black screen after window closing
# double add problem

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fullstack-cms-0.2.4 app/views/admin/linkables/fields.js.coffee
fullstack-cms-0.2.3 app/views/admin/linkables/fields.js.coffee
fullstack-cms-0.2.2 app/views/admin/linkables/fields.js.coffee
fullstack-cms-0.2.1 app/views/admin/linkables/fields.js.coffee