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">
|
<div class="display-mode">
|
||||||
<%= render @partial if @partial %>
|
<%= render @partial if @partial %>
|
||||||
</div>
|
</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" %>
|
<%= f.label :widget_data_count, t(:widget_data_count), class: "control-label muted" %>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<%= f.select :widget_data_count, options_for_select(@data_count, @part.widget_data_count), {}, class: "input-mini", id: "page_count" %>
|
<%= f.select :widget_data_count, options_for_select(@data_count, @part.widget_data_count), {}, class: "input-mini", id: "page_count" %>
|
||||||
|
|
|
@ -3,3 +3,9 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
$("#module_widget .display-mode").html('')
|
$("#module_widget .display-mode").html('')
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% if !@module_app.enable_widget_data_count %>
|
||||||
|
$(".widget_count").addClass('hide');
|
||||||
|
<% else %>
|
||||||
|
$(".widget_count").removeClass('hide');
|
||||||
|
<% end %>
|
Reference in New Issue