Originally posted by cailin maith
View Post
That was pretty trivial, to be honest... looks like it's this bit:
Code:
var latest_videos=".latest_videos"; var selected_class="selected"; var last_class="last"; var unselected_items="li:not(."+selected_class+")"; var selected_items="li."+selected_class; function select_video(){ var firstItem=$(this).parent().children("li:first"); var firstItemContents=firstItem.children().remove(); var selectedItemContents=$(this).children().remove(); $(this).append(firstItemContents); firstItem.append(selectedItemContents); return false; } $(latest_videos).find(unselected_items).click(select_video); $(latest_videos).find(selected_items).click( function(){ openPlayer($(this).find("a").attr("href")); return false; } );
Comment