Sha256: 87c6f01547c70c24338a483a7772e279f4a76c682fe05e49d9759c465e21583b

Contents?: true

Size: 959 Bytes

Versions: 2

Compression:

Stored size: 959 Bytes

Contents

if ($('#question_modal')[0] == null) {
	$('body').append('<div id="question_modal"></div>');
}
$('#question_modal').html('<%= link_to("Add \"#{params[:human_type]}\"", fe_admin_question_sheet_page_elements_path(:question_sheet_id => @page.question_sheet_id, :page_id => @page.id,
                                            :element_type => params[:element_type], "element[style]" => @style, format: :js),
                                            :remote => true,
                                            :method => :post,
                                            :class => "add_type") %><p>Or you can also use an existing <%= params[:human_type] %> element. If you are unsure, just <strong>Add <%= params[:human_type] %>.</strong></p><div id="questions_div" title=""></div>');
$('#questions_div').html("<%= escape_javascript(render('fe/questions/fe/questions', :questions => @questions)) %>")
$('#question_modal').dialog({width: 500, height: 400});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fe-1.0.0 app/views/fe/admin/elements/new.js.erb
fe-0.0.4 app/views/fe/admin/elements/new.js.erb