Lines Matching refs:index

285 				var index = $(this).parent().parent().index();
286 if(self.current !== index) {
287 self.play(index);
304 var index = $(this).parent().parent().index();
305 self.remove(index);
331 _highlight: function(index) { argument
332 if(this.playlist.length && index !== undefined) {
334 …$(this.cssSelector.playlist + " li:nth-child(" + (index + 1) + ")").addClass("jp-playlist-current"…
356 remove: function(index) { argument
359 if(index === undefined) {
370index = (index < 0) ? self.original.length + index : index; // Negative index relates to end of ar…
371 if(0 <= index && index < this.playlist.length) {
374 …$(this.cssSelector.playlist + " li:nth-child(" + (index + 1) + ")").slideUp(this.options.playlistO…
378 var item = self.playlist[index];
385 self.playlist.splice(index, 1);
387 self.original.splice(index, 1);
388 self.playlist.splice(index, 1);
392 if(index === self.current) {
393 …self.current = (index < self.original.length) ? self.current : self.original.length - 1; // To cop…
395 } else if(index < self.current) {
412 select: function(index) { argument
413index = (index < 0) ? this.original.length + index : index; // Negative index relates to end of ar…
414 if(0 <= index && index < this.playlist.length) {
415 this.current = index;
416 this._highlight(index);
422 play: function(index) { argument
423index = (index < 0) ? this.original.length + index : index; // Negative index relates to end of ar…
424 if(0 <= index && index < this.playlist.length) {
426 this.select(index);
429 } else if(index === undefined) {
437 var index = (this.current + 1 < this.playlist.length) ? this.current + 1 : 0;
441 …if(index === 0 && this.shuffled && this.options.playlistOptions.shuffleOnLoop && this.playlist.len…
444 this.play(index);
448 if(index > 0) {
449 this.play(index);
454 var index = (this.current - 1 >= 0) ? this.current - 1 : this.playlist.length - 1;
456 … if(this.loop && this.options.playlistOptions.loopOnPrevious || index < this.playlist.length - 1) {
457 this.play(index);