Sha256: 336ff87a54163da448a64d007ce2859ee6bedd9bc8bbf0c083ecfa93c27a825e
Contents?: true
Size: 1.9 KB
Versions: 3
Compression:
Stored size: 1.9 KB
Contents
{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"%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"dependency_digest; F"%9f3dc1df27a6c736ad13867d94084857I"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"%5d89d70bf66b4d5905d7e49da4e80656I" _version; F"%6584930913c75ff69ba506e1cfbae2c9
Version data entries
3 entries across 3 versions & 1 rubygems