Sha256: c0fc268ec79230f03ac53a7f4e549bce4773cbd021e8a8eebfbb5a392f258595
Contents?: true
Size: 424 Bytes
Versions: 28
Compression:
Stored size: 424 Bytes
Contents
module PageHelper def check_all_button( param, label ) html = <<-EOF <button type="button" id="check_all_#{ param }">#{ label }</button> <script> $(function(){ $("#check_all_#{ param }").click(function(e){ var checkboxes = $("input##{ param }"); checkboxes.prop("checked", !checkboxes.prop("checked")); }); }); </script> EOF html.html_safe end end
Version data entries
28 entries across 28 versions & 1 rubygems