{I" class:EFI"ProcessedAsset;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"%b4caefd17d235a551be5f325b8701b11I" 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"dependency_digest;F"%772a087f973b91a0e9168e59f13f281eI"required_paths;F[I"`/Users/jrochkind/code/umlaut-rails4/app/assets/javascripts/umlaut/expand_contract_toggle.js;TI"dependency_paths;F[{I" path;FI"`/Users/jrochkind/code/umlaut-rails4/app/assets/javascripts/umlaut/expand_contract_toggle.js;TI" mtime;FI"2014-07-07T17:17:32-04:00;FI" digest;F"%acd62bf7f589d94b1f1322875b88f70cI" _version;F"%f9f39fb687a2f0a0ceb7a52f07025205