Sha256: 110c6024d0d658cf0c271b5760aaefe396f9c434bdbeccb2c402f1412abaf4ab
Contents?: true
Size: 909 Bytes
Versions: 4
Compression:
Stored size: 909 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.index_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
4 entries across 4 versions & 1 rubygems