app/assets/javascripts/umlaut/expand_contract_toggle.js in umlaut-3.1.0.pre2 vs app/assets/javascripts/umlaut/expand_contract_toggle.js in umlaut-3.1.0

- old
+ new

@@ -1,11 +1,12 @@ /* 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($) { - $(".collapse_toggle").each(function(){ - $(this).collapse('toggle'); - }); $(document).on("click", ".collapse-toggle", function(event) { event.preventDefault(); return false; }); $(document).on("show", ".collapse", function(event) { @@ -21,5 +22,6 @@ // Update the action label $(this).parent().find(".expand_contract_action_label").text("Show "); }); }); +