active_scaffold-sequel 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/jquery/active_scaffold.js +67 -22
- data/app/assets/javascripts/prototype/active_scaffold.js +76 -25
- data/doc/README.mark +30 -0
- data/frontends/default/views/update_column.js.erb +14 -16
- data/lib/active_scaffold/actions/core.rb +1 -4
- data/lib/active_scaffold/actions/delete.rb +0 -1
- data/lib/active_scaffold/actions/mark.rb +4 -62
- data/lib/active_scaffold/actions/update.rb +17 -9
- data/lib/active_scaffold/config/list.rb +0 -7
- data/lib/active_scaffold/config/mark.rb +1 -10
- data/lib/active_scaffold/data_structures/columns.rb +8 -4
- data/lib/active_scaffold/helpers/list_column_helpers.rb +12 -17
- data/lib/active_scaffold/helpers/view_helpers.rb +3 -0
- data/lib/active_scaffold/marked_model.rb +4 -29
- data/lib/active_scaffold/version.rb +2 -2
- metadata +177 -155
- data/frontends/default/views/on_mark_all.js.erb +0 -12
@@ -1,12 +0,0 @@
|
|
1
|
-
<%options = {:checked => mark_all,
|
2
|
-
:include_mark_all => true}%>
|
3
|
-
ActiveScaffold.mark_records('<%=active_scaffold_tbody_id%>',<%=options.to_json.html_safe%>);
|
4
|
-
<%if active_scaffold_config.model.marked.length>0 then %>
|
5
|
-
<%if active_scaffold_config.model.marked.length < @page.pager.count then%>
|
6
|
-
ActiveScaffold.replace_html('<%=active_scaffold_messages_id%>','<%="#{active_scaffold_config.model.marked.length.to_s} records marked. Press <a href=\"#{url_for(:action=>"mark_all",:mark_target=>"scope")}\">here</a> to select all #{@page.pager.count} records.".html_safe%>');
|
7
|
-
<%else%>
|
8
|
-
ActiveScaffold.replace_html('<%=active_scaffold_messages_id%>','<%="All #{@page.pager.count} records marked".html_safe%>');
|
9
|
-
<%end%>
|
10
|
-
<%else%>
|
11
|
-
ActiveScaffold.replace_html('<%=active_scaffold_messages_id%>','');
|
12
|
-
<%end%>
|