Sha256: f797c036fec71eeeaa7fa5302d7a003cb15ccdbadee7d9d1e477293a4ad1b777

Contents?: true

Size: 1.11 KB

Versions: 50

Compression:

Stored size: 1.11 KB

Contents

<% if @r_object && @r_object.errors.blank? %>
	
	// Updating the edited row and highlighting it
	$("#tr_<%= @resource_options[:item_name] %>_<%= @r_object.id %>").replaceWith("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/row", locals: { @resource_options[:item_name].to_sym => @r_object, i: -1})) %>");
	$("#tr_<%= @resource_options[:item_name] %>_<%= @r_object.id %>").css("background-color", "#fffddd");
  
  // Refresh the modal content if it is open
	$("#div_<%= @resource_options[:item_name] %>_show").replaceWith("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/show")) %>")

  // Closing the modal
  showAndHideModals();

  // Showing Growl Like Message
  notifySuccess("<%= @notification[:title] %>", "<%= @notification[:message] %>");

<% else %>
	
	// Updating the row which got errored and highlighting it
	$("#tr_<%= @resource_options[:item_name] %>_<%= params[:id] %>").css("background-color", "#ffefef");

	// Showing Growl Like Message
  notifyError("<%= escape_javascript(@notification[:title]) %>", "<%= escape_javascript(raw(@notification[:message])) %>");
  
<% end %>

Version data entries

50 entries across 25 versions & 1 rubygems

Version Path
kuppayam-0.1.27 app/views/kuppayam/workflows/peacock/row.js.erb
kuppayam-0.1.27 app/views/kuppayam/workflows/parrot/row.js.erb
kuppayam-0.1.26 app/views/kuppayam/workflows/peacock/row.js.erb
kuppayam-0.1.26 app/views/kuppayam/workflows/parrot/row.js.erb
kuppayam-0.1.25 app/views/kuppayam/workflows/parrot/row.js.erb
kuppayam-0.1.25 app/views/kuppayam/workflows/peacock/row.js.erb
kuppayam-0.1.24 app/views/kuppayam/workflows/parrot/row.js.erb
kuppayam-0.1.24 app/views/kuppayam/workflows/peacock/row.js.erb
kuppayam-0.1.23 app/views/kuppayam/workflows/parrot/row.js.erb
kuppayam-0.1.23 app/views/kuppayam/workflows/peacock/row.js.erb
kuppayam-0.1.22 app/views/kuppayam/workflows/parrot/row.js.erb
kuppayam-0.1.22 app/views/kuppayam/workflows/peacock/row.js.erb
kuppayam-0.1.21 app/views/kuppayam/workflows/parrot/row.js.erb
kuppayam-0.1.21 app/views/kuppayam/workflows/peacock/row.js.erb
kuppayam-0.1.20 app/views/kuppayam/workflows/peacock/row.js.erb
kuppayam-0.1.20 app/views/kuppayam/workflows/parrot/row.js.erb
kuppayam-0.1.19 app/views/kuppayam/workflows/peacock/row.js.erb
kuppayam-0.1.19 app/views/kuppayam/workflows/parrot/row.js.erb
kuppayam-0.1.18 app/views/kuppayam/workflows/peacock/row.js.erb
kuppayam-0.1.18 app/views/kuppayam/workflows/parrot/row.js.erb