Sha256: 95021ff38861e9c5082f3467f0bbf536d33e27ac043617fba652974dc2d99d54
Contents?: true
Size: 913 Bytes
Versions: 45
Compression:
Stored size: 913 Bytes
Contents
jQuery ($) -> # # Use Rails.js click handler to allow for Rails' confirm dialogs # $(document).delegate "#batch_actions_selector li a", "click.rails", -> $("#batch_action").val $(this).attr("data-action") $("#collection_selection").submit() # # Add checkbox selection to resource tables and lists if batch actions are enabled # if $("#batch_actions_selector").length && $(":checkbox.toggle_all").length if $(".paginated_collection table.index_table").length $(".paginated_collection table.index_table").tableCheckboxToggler() else $(".paginated_collection").checkboxToggler() $(".paginated_collection").find(":checkbox").bind "change", -> if $(".paginated_collection").find(":checkbox").filter(":checked").length > 0 $("#batch_actions_selector").aaDropdownMenu("enable") else $("#batch_actions_selector").aaDropdownMenu("disable")
Version data entries
45 entries across 45 versions & 1 rubygems