Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function itemHandler(obj) {
- var item = obj['index'];
- var playlist = $("#"+obj['id']).next();
- var currentItem = 0;
- playlist.children().each(function(){
- if (currentItem == item) {
- $(this).addClass("playing");
- } else {
- $(this).removeClass("playing");
- }
- currentItem++;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement