Sha256: ec2e759f2f759704fc04b420e2994c8a86145873aeb3818e6c99952c9695cbf4

Contents?: true

Size: 695 Bytes

Versions: 4

Compression:

Stored size: 695 Bytes

Contents

// Load the form
var heading = "Add <%= @resource_options[:item_name].to_s.titleize %>";
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/new.js.erb
kuppayam-0.1.37 app/views/kuppayam/workflows/default/new.js.erb
kuppayam-0.1.36 app/views/kuppayam/workflows/default/new.js.erb
kuppayam-0.1.35 app/views/kuppayam/workflows/default/new.js.erb