Sha256: 141092881147cc453d20a6ed128c493e34f7c87e4eb4be15e266fd72acf7e0b3
Contents?: true
Size: 1.98 KB
Versions: 2
Compression:
Stored size: 1.98 KB
Contents
{I" class:ETI"ProcessedAsset; FI"logical_path; TI"%umlaut/expand_contract_toggle.js; FI" pathname; TI"t/Users/jrochkind/.gem/ruby/2.2.2/gems/umlaut-4.1.0.pre3/app/assets/javascripts/umlaut/expand_contract_toggle.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+DN5UI"length; TiI"digest; TI"%28f54ccc0e2eaaae5f1812451a9111f2; FI"source; TI"/* expand_contract_toggle.js: Support for show more/hide more in lists of umlaut content. Expand/collapse elements are already controlled via Bootstrap toggle, this just adds some additional behavior in hooks to change our labels and disclosure icons appropriately, and prevent following non-js href links. */ jQuery(document).ready(function($) { $(document).on("click", ".collapse-toggle", function(event) { event.preventDefault(); return false; }); $(document).on("show.bs.collapse", ".collapse", function(event) { // Update the icon $(this).parent().find('.collapse-toggle i').removeClass("umlaut_icons-list-closed").addClass("umlaut_icons-list-open"); // Update the action label $(this).parent().find(".expand_contract_action_label").text("Hide "); }); $(document).on("hide.bs.collapse", ".collapse", function(event) { // Update the icon $(this).parent().find('.collapse-toggle i').removeClass("umlaut_icons-list-open").addClass("umlaut_icons-list-closed"); // Update the action label $(this).parent().find(".expand_contract_action_label").text("Show "); }); }); ; TI"dependency_digest; TI"%9cd42e8c44369dba86bbe8a1a778f37d; FI"required_paths; T[I"t/Users/jrochkind/.gem/ruby/2.2.2/gems/umlaut-4.1.0.pre3/app/assets/javascripts/umlaut/expand_contract_toggle.js; FI"dependency_paths; T[{I" path; TI"t/Users/jrochkind/.gem/ruby/2.2.2/gems/umlaut-4.1.0.pre3/app/assets/javascripts/umlaut/expand_contract_toggle.js; F@I"2015-04-20T15:06:44-04:00; T@I"%75408a6513458df55762988b2e71e59a; FI" _version; TI"%4bf7b15359fe8e0974f7f263e26e27f4; F
Version data entries
2 entries across 1 versions & 1 rubygems