Quick Suggestion
Permalink Browser Info Environment
This is a fantastic template. I would like to suggest modifying the jQuery portion to the following:
This not only shortens the code, it allows you to use the same code regardless of which display method you have in your template without having to worry about which method is first in the toggle.
This not only shortens the code, it allows you to use the same code regardless of which display method you have in your template without having to worry about which method is first in the toggle.
$(document).ready(function(){ $("a.switch_thumb").click(function(){ $(this).toggleClass("swap"); $("ul.display").fadeOut("fast", function() { $(this).fadeIn("fast").toggleClass("thumb_view"); }); }); });
Type: | Discussion |
---|---|
Status: | New |