Team:ETH Zurich/collapsible
From 2013.igem.org
(Difference between revisions)
Line 29: | Line 29: | ||
strBefore = "collapse"; | strBefore = "collapse"; | ||
str = "expand"; | str = "expand"; | ||
- | if ($(".collapsibleContainerContent", $(this).parent()). | + | if ($(".collapsibleContainerContent", $(this).parent()).title.indexOf("expand") >= 0) |
{ | { | ||
str = [strBefore, strBefore = str][0]; | str = [strBefore, strBefore = str][0]; | ||
} | } | ||
- | $(".collapsibleContainerContent", $(this).parent()). | + | $(".collapsibleContainerContent", $(this).parent()).title($(".collapsibleContainerContent", $(this).parent()).title.replace(strBefore, str)); |
} | } | ||
$(document).ready(function() { | $(document).ready(function() { |
Revision as of 14:57, 25 October 2013