19 lines
1.1 KiB
Plaintext
19 lines
1.1 KiB
Plaintext
<% if @module_app%>
|
|
$('#widget_list select').html("<%= j options_for_select(@module_app.widgets.collect{|k,v| k},@part.widget_path) %>");
|
|
$("#widget_data_source_category").html("<%= j render :partial => 'widget_data_source_category',:locals=>{:object=>@part} %>");
|
|
$("#widget_data_source_tag").html("<%= j render :partial => 'widget_data_source_tag',:locals=>{:object=>@part} %>");
|
|
|
|
<% if @part %>
|
|
<% if show_default_widget_setting_panel %>
|
|
$('#widget_setting').html("<%= j render :partial => 'default_widget_style_panel' %>");
|
|
$('#widget_setting').append("<%= j render :partial => 'default_widget_setting',:locals=>{:object=>@part} %>");
|
|
<% elsif show_custom_widget_setting_panel %>
|
|
$('#widget_setting').html("<%= j render :partial => 'custom_widget_setting' %>");
|
|
<% end %>
|
|
<% end %>
|
|
<% else %>
|
|
$('#widget_option').find("div.well.controls").html("<%= t('default_widget.no_support_setting')%>");
|
|
$('#widget_setting').html("<%=j render :partial=> 'reset',:locals=>{:label_i18n=>'default_widget.select_widget_style'}%>");
|
|
$('#widget_list select').html("<%= j options_for_select([]) %>");
|
|
<% end %>
|