Sha256: bb7337c3e7d6d1878e16d0173e9b5e6194670769f5ee1c981f2ea92d313c673f

Contents?: true

Size: 1.9 KB

Versions: 10

Compression:

Stored size: 1.9 KB

Contents

{I"
class:EFI"ProcessedAsset;FI"logical_path;FI"%umlaut/expand_contract_toggle.js;TI"
pathname;FI"Y/Users/jrochkind/code/umlaut/app/assets/javascripts/umlaut/expand_contract_toggle.js;TI"content_type;FI"application/javascript;FI"
mtime;Fl+!TI"length;FiI"digest;F"%28f54ccc0e2eaaae5f1812451a9111f2I"source;FI"/* 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;F"%9cd42e8c44369dba86bbe8a1a778f37dI"required_paths;F[I"Y/Users/jrochkind/code/umlaut/app/assets/javascripts/umlaut/expand_contract_toggle.js;TI"dependency_paths;F[{I"	path;FI"Y/Users/jrochkind/code/umlaut/app/assets/javascripts/umlaut/expand_contract_toggle.js;TI"
mtime;FI"2014-09-23T12:29:41-04:00;FI"digest;F"%75408a6513458df55762988b2e71e59aI"
_version;F"%4bf7b15359fe8e0974f7f263e26e27f4

Version data entries

10 entries across 5 versions & 1 rubygems

Version Path
umlaut_borrow_direct-1.0.1 test/dummy/tmp/cache/assets/test/sprockets/d92186d33469ff2bd01ba096f33dfd78
umlaut_borrow_direct-1.0.1 test/dummy/tmp/cache/assets/test/sprockets/3fddcee3e5dbd24f28de1001e5f3a009
umlaut_borrow_direct-1.0.0 test/dummy/tmp/cache/assets/test/sprockets/3fddcee3e5dbd24f28de1001e5f3a009
umlaut_borrow_direct-1.0.0 test/dummy/tmp/cache/assets/test/sprockets/d92186d33469ff2bd01ba096f33dfd78
umlaut_borrow_direct-1.0.0.pre3 test/dummy/tmp/cache/assets/test/sprockets/3fddcee3e5dbd24f28de1001e5f3a009
umlaut_borrow_direct-1.0.0.pre3 test/dummy/tmp/cache/assets/test/sprockets/d92186d33469ff2bd01ba096f33dfd78
umlaut_borrow_direct-1.0.0.pre2 test/dummy/tmp/cache/assets/test/sprockets/d92186d33469ff2bd01ba096f33dfd78
umlaut_borrow_direct-1.0.0.pre2 test/dummy/tmp/cache/assets/test/sprockets/3fddcee3e5dbd24f28de1001e5f3a009
umlaut_borrow_direct-1.0.0.pre.alpha.1 test/dummy/tmp/cache/assets/test/sprockets/3fddcee3e5dbd24f28de1001e5f3a009
umlaut_borrow_direct-1.0.0.pre.alpha.1 test/dummy/tmp/cache/assets/test/sprockets/d92186d33469ff2bd01ba096f33dfd78