Sha256: e13114325349a055525541dcdc6dd534f344d03d28a33ed3d8a9a8adf32ab936
Contents?: true
Size: 890 Bytes
Versions: 17
Compression:
Stored size: 890 Bytes
Contents
/* expand_contract_toggle.js: Support for show more/hide more in lists of umlaut content. */ jQuery(document).ready(function($) { $(".expand_contract_toggle").live("click", function() { var content = $(this).next(".expand_contract_content"); var icon = $(this).parent().find('img.toggle_icon'); if (content.is(":visible")) { icon.attr("src", icon.attr("src").replace("list_open.png", "list_closed.png")); $(this).find(".expand_contract_action_label").text("Show "); content.hide(); } else { icon.attr("src", icon.attr("src").replace("list_closed.png", "list_open.png")); $(this).find(".expand_contract_action_label").text("Hide "); content.show(); } return false; }); });
Version data entries
17 entries across 17 versions & 1 rubygems