Orbit/app/views/admin/page_parts/reload_widgets.js.erb

5 lines
406 B
Plaintext
Raw Normal View History

2012-07-16 08:13:38 +00:00
$('#widget_list select').html("<%= j options_for_select(@module_app.widgets.collect{|k,v| k}) %>")
2012-08-09 07:25:30 +00:00
$('#widget_style_list select').html("<%= j options_for_select( @module_app.widgets[@widget_path] ) if !@widget_path.blank? %>")
$('#widget_field').html("<%= j render 'widget_fields' %>")
$('#widget_category').html("<%= j render 'widget_categories' %>")
$('#widget_tag').html("<%= j render 'widget_tags' %>")