orbit-basic/app/views/admin/page_parts/reload_widget_styles.js.erb

6 lines
178 B
Plaintext

<% if @widget_style.nil? %>
$('#widget_style_list select').html("")
<% else %>
$('#widget_style_list select').html("<%= j options_for_select(@widget_style) %>")
<% end %>