app/views/cms/groups/_permissions.html.erb in browsercms-3.1.5 vs app/views/cms/groups/_permissions.html.erb in browsercms-3.3.0.beta
- old
+ new
@@ -1,7 +1,7 @@
-<% content_for :html_head do %>
- <% javascript_tag do %>
+<%= content_for :html_head do %>
+ <%= javascript_tag do %>
jQuery(function($){
var cms_access_group_ids = <%= GroupType.cms_access.all.map{|e| e.id.to_s}.to_json %>
$('#group_group_type_id').change(function() {
if ($.inArray($('#group_group_type_id')[0].value, cms_access_group_ids) < 0) {
$('#permissions').hide()
@@ -11,10 +11,11 @@
$('#section-action').text('edit')
}
}).change()
});
<% end %>
+
<% end %>
<div id="permissions">
<div class="checkbox_group">
<label>Global Permissions</label>
<%= hidden_field_tag "group[permission_ids][]", "" %>
@@ -25,11 +26,10 @@
<label for="permission_ids_<%= p.id %>" style="width: 400px;#padding-top: 6px;"><%=h p.full_name %></label>
</div>
<div class="instructions"><%=h p.description %></div>
<% end %>
<div class="check_uncheck">
- <%= link_to_check_all 'input.permission_ids' %>,
- <%= link_to_uncheck_all 'input.permission_ids' %>
+ <%= check_uncheck_tag 'input.permission_ids' %>
</div>
</div>
<br clear="all" />
<div style="clear: all; margin-top: -10px;"></div>
</div>