Sha256: 63ec5e983154ba2548e439b12aadf3c534d105092ac8574b92befccbdc9ef125

Contents?: true

Size: 951 Bytes

Versions: 14

Compression:

Stored size: 951 Bytes

Contents

<% 
  if @resource_options[:layout] == :table
    list_id = "#div_#{@resource_options[:item_name]}_index"
  elsif @resource_options[:layout] == :feed
    list_id = "#div_#{@resource_options[:item_name]}_list"
  end
%>

// Close Modal if it is opened
<% if @resource_options[:show_model_size] == "generic" %>
  closeGenericModal();
<% elsif @resource_options[:show_model_size] == "large" %>
  closeLargeModal();
<% end %>

<% if @r_objects.any? %>
  <% 
    if @row_partial_locals && @row_partial_locals.is_a?(Hash) && !@row_partial_locals.empty?
      locals = @row_partial_locals
    else
    	locals = {}
    end
  %>
  // Refresh the list
  $("<%= list_id %>").html("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/index", locals: locals)) %>");
<% else %>
  var noResultsText = "<%= escape_javascript(theme_panel_message(I18n.translate('success.no_results_found')))%>";
  $("<%= list_id %>").html(noResultsText);
<% end %>

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
dhatu-0.3.9.pre.materialize app/views/dhatu/sections/index.js.erb
dhatu-0.3.8.pre.materialize app/views/dhatu/sections/index.js.erb
dhatu-0.3.7.pre.materialize app/views/dhatu/sections/index.js.erb
dhatu-0.3.6.pre.materialize app/views/dhatu/sections/index.js.erb
dhatu-0.3.5.pre.materialize app/views/dhatu/sections/index.js.erb
dhatu-0.3.4.pre.materialize app/views/dhatu/sections/index.js.erb
dhatu-0.3.3.pre.materialize app/views/dhatu/sections/index.js.erb
dhatu-0.3.2.pre.materialize app/views/dhatu/sections/index.js.erb
dhatu-0.3.1.pre.materialize app/views/dhatu/sections/index.js.erb
dhatu-0.3.0.pre.materialize app/views/dhatu/sections/index.js.erb
kuppayam-0.2.0.pre.materialize app/views/kuppayam/workflows/default/index.js.erb
dhatu-0.2.3 app/views/dhatu/sections/index.js.erb
dhatu-0.2.2 app/views/dhatu/sections/index.js.erb
kuppayam-0.1.39 app/views/kuppayam/workflows/default/index.js.erb