CC-3896: Playlist Builder: Using "select this page" to add songs to playlist, those songs will be added in by opposite order, like a stack

-fixed
This commit is contained in:
denise 2012-05-29 17:07:16 -04:00
parent c1976162cb
commit 05378f52d3
1 changed files with 6 additions and 2 deletions

View File

@ -153,10 +153,14 @@ var AIRTIME = (function(AIRTIME) {
/*
* selects all items which the user can currently see.
* (behaviour taken from gmail)
*
* by default the items are selected in reverse order
* so we need to reverse it back
*/
mod.selectCurrentPage = function() {
var $trs = $libTable.find("tbody input:checkbox").parents("tr");
$.fn.reverse = [].reverse;
var $trs = $libTable.find("tbody input:checkbox").parents("tr").reverse();
$trs.each(function(i, el){
$el = $(this);