Sha256: 6b7848edc63fa42ff53956df95147b5033fd8046dfa323aebcdb9b1e7f436cff
Contents?: true
Size: 897 Bytes
Versions: 21
Compression:
Stored size: 897 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").find("table").length $(".paginated_collection 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
21 entries across 21 versions & 1 rubygems