widget count fixed for new widgets in page widget settings
This commit is contained in:
parent
0671d0b126
commit
053144dfa4
|
@ -129,7 +129,7 @@
|
|||
<div class="display-mode">
|
||||
<%= render @partial if @partial %>
|
||||
</div>
|
||||
<div class="control-group input-content <%= 'hide' if @module_app.blank? || !@module_app.enable_widget_data_count %>">
|
||||
<div class="control-group input-content widget_count <%= 'hide' if @module_app.blank? || !@module_app.enable_widget_data_count %>">
|
||||
<%= f.label :widget_data_count, t(:widget_data_count), class: "control-label muted" %>
|
||||
<div class="controls">
|
||||
<%= f.select :widget_data_count, options_for_select(@data_count, @part.widget_data_count), {}, class: "input-mini", id: "page_count" %>
|
||||
|
|
|
@ -2,4 +2,10 @@
|
|||
$("#module_widget .display-mode").html("<%= j render @partial %>")
|
||||
<% else %>
|
||||
$("#module_widget .display-mode").html('')
|
||||
<% end %>
|
||||
|
||||
<% if !@module_app.enable_widget_data_count %>
|
||||
$(".widget_count").addClass('hide');
|
||||
<% else %>
|
||||
$(".widget_count").removeClass('hide');
|
||||
<% end %>
|
Reference in New Issue