{I" class:EFI"BundledAsset;FI"logical_path;FI"%umlaut/expand_contract_toggle.js;TI" pathname;FI"`/Users/jrochkind/code/umlaut-rails4/app/assets/javascripts/umlaut/expand_contract_toggle.js;TI"content_type;FI"application/javascript;FI" mtime;Fl+l»SI" length;FiiI" digest;F"%52cd7d0c0b6fb5a3d92779ef9d6e235cI" source;FI"i/* 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", ".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", ".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"required_assets_digest;F"%9f3dc1df27a6c736ad13867d94084857I" _version;F"%6584930913c75ff69ba506e1cfbae2c9