Sha256: ad8bdafcf06e93cf328d41e614f5b171b14ee739d8b49134902023c4f33886c9

Contents?: true

Size: 688 Bytes

Versions: 4

Compression:

Stored size: 688 Bytes

Contents

// Load the form
var heading = "Edit '<%= raw @r_object.try(:display_name) %>'";
var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/form")) %>";
<% if @resource_options[:form_model_size] == :generic %>
	showGenericModal(heading, bodyContent, true);
<% elsif @resource_options[:form_model_size] == :large %>
	showLargeModal(heading, bodyContent, true);
<% end %>

// Initialize WYSIHTML Editor
<% if @resource_options[:load_wysihtml5] %>
$(".wysihtml5").wysihtml5(
	{"stylesheets": '/assets/wysiwyg-color.css'}
);
<% end %>

// Initialize WYSIHTML Editor
<% if @resource_options[:tagsinput] %>
$('input.kuppayam-tagsinput').tagsinput();
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kuppayam-0.1.38 app/views/kuppayam/workflows/default/edit.js.erb
kuppayam-0.1.37 app/views/kuppayam/workflows/default/edit.js.erb
kuppayam-0.1.36 app/views/kuppayam/workflows/default/edit.js.erb
kuppayam-0.1.35 app/views/kuppayam/workflows/default/edit.js.erb