Sha256: 9f43119aa4851b54222a49e4251091684e90e21966f4980b7d5599b43485e8cf

Contents?: true

Size: 779 Bytes

Versions: 19

Compression:

Stored size: 779 Bytes

Contents

options = {:checked => mark_all,
           :include_mark_all => true}
page << "ActiveScaffold.mark_records('#{active_scaffold_tbody_id}', #{options.to_json});"
if active_scaffold_config.model.marked.length>0 then
  if active_scaffold_config.model.marked.length < @page.pager.count then
    page.call '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
  else
    page.call 'ActiveScaffold.replace_html', active_scaffold_messages_id, "All #{@page.pager.count} records marked"
  end
else
  page.call 'ActiveScaffold.replace_html', active_scaffold_messages_id, ""
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
active_scaffold_vho-3.0.31 frontends/default/views/on_mark_all.js.rjs
active_scaffold_vho-3.0.30 frontends/default/views/on_mark_all.js.rjs
active_scaffold_vho-3.0.29 frontends/default/views/on_mark_all.js.rjs
active_scaffold_vho-3.0.28 frontends/default/views/on_mark_all.js.rjs
active_scaffold_vho-3.0.27 frontends/default/views/on_mark_all.js.rjs
active_scaffold_vho-3.0.26 frontends/default/views/on_mark_all.js.rjs
active_scaffold_vho-3.0.25 frontends/default/views/on_mark_all.js.rjs
active_scaffold-3.0.26 frontends/default/views/on_mark_all.js.rjs
active_scaffold-3.0.25 frontends/default/views/on_mark_all.js.rjs
active_scaffold_vho-3.0.24 frontends/default/views/on_mark_all.js.rjs
active_scaffold_clarity-3.0.24.2 frontends/default/views/on_mark_all.js.rjs
active_scaffold_vho-3.0.23 frontends/default/views/on_mark_all.js.rjs
active_scaffold_vho-3.0.22 frontends/default/views/on_mark_all.js.rjs
active_scaffold-3.0.24 frontends/default/views/on_mark_all.js.rjs
active_scaffold_vho-3.0.21 frontends/default/views/on_mark_all.js.rjs
active_scaffold-3.0.23 frontends/default/views/on_mark_all.js.rjs
active_scaffold-3.0.22 frontends/default/views/on_mark_all.js.rjs
active_scaffold-3.0.21 frontends/default/views/on_mark_all.js.rjs
active_scaffold_vho-3.0.20 frontends/default/views/on_mark_all.js.rjs