From 7761026a7b1673df904f5233f6294995a79d6a1f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 28 Nov 2011 09:56:44 +0000 Subject: [PATCH] Convert prototype code to jQuery on user list page --- app/views/user/list.html.erb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/user/list.html.erb b/app/views/user/list.html.erb index e90a6de8b..c19c0ac6c 100644 --- a/app/views/user/list.html.erb +++ b/app/views/user/list.html.erb @@ -22,13 +22,7 @@ <% end %> - <%= - check_box_tag("user_all", "1", false, :onchange => update_page do |page| - @users.each do |user| - page << "$('user_#{user.id}').checked = $('user_all').checked;" - end - end) - %> + <%= check_box_tag "user_all", "1", false %> <%= render :partial => 'user', :collection => @users %> @@ -38,6 +32,12 @@ <%= submit_tag t('user.list.confirm'), :name => "confirm" %> <%= submit_tag t('user.list.hide'), :name => "hide" %> + + <% end %> <% else %>

<%= t "user.list.empty" %>

-- 2.39.5