Sha256: 059f76391a20bca48a64a7e81fdcfd8635423d00633f4f5d49989a660abeba36

Contents?: true

Size: 942 Bytes

Versions: 68

Compression:

Stored size: 942 Bytes

Contents

$("#thought-<%= @thought.id %>")
  .replaceWith("<%= escape_javascript(render partial: 'think_feel_do_engine/thoughts/mutable_thought', object: @thought) %>");
$("#thought-<%= @thought.id %>")
  .addClass("success");
setTimeout(
	function() { 
		var tableVars, editedRow;
		
		$("#thought-<%= @thought.id %>").removeClass("success");
		tableVars = $("#thought-<%= @thought.id %>").parents("table");
		editedRow = $("#thought-<%= @thought.id %>").parents("tr");

		$("#thought-<%= @thought.id %>").parents("table").ngResponsiveTables({
			smallPaddingCharNo: parseInt(tableVars.attr("data-sPCN")),
			mediumPaddingCharNo: parseInt(tableVars.attr("data-mPCN")),
			largePaddingCharNo: parseInt(tableVars.attr("data-lPCN")),
			shiftedIndex: parseInt(tableVars.attr("data-sI")),
			headerAdjust: (tableVars.attr("data-hA") == "true"),
			headers: tableVars.attr("data-headers").split()
		});
		
		editedRow.removeClass("form-table");
	}, 
150);

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.22.8 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.22.7 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.22.6 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.22.5 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.22.4 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.22.2 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.22.1 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.22.0 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.21.2 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.21.1 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.21.0 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.20.1 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.19.9 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.19.8 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.19.7 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.19.6 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.19.5 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.19.4 app/views/think_feel_do_engine/participants/thoughts/create.js.erb
think_feel_do_engine-3.19.3 app/views/think_feel_do_engine/participants/thoughts/create.js.erb