CC-3900: Show Builder boxes remain checked even when the item is no longer visible
-fixed playlist builder "Dragging <x> items" message so <x> is amount of visible items only
This commit is contained in:
parent
1b540626ed
commit
c18704aa4d
|
@ -34,10 +34,25 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
};
|
};
|
||||||
|
|
||||||
mod.getChosenAudioFilesLength = function(){
|
mod.getChosenAudioFilesLength = function(){
|
||||||
var files = Object.keys(chosenItems),
|
//var files = Object.keys(chosenItems),
|
||||||
i, length,
|
var files,
|
||||||
count = 0,
|
$trs,
|
||||||
reAudio=/^au/ ;
|
cItem,
|
||||||
|
i, length,
|
||||||
|
count = 0,
|
||||||
|
reAudio=/^au/ ;
|
||||||
|
|
||||||
|
// Get visible items and check if any chosenItems are visible
|
||||||
|
$trs = $libTable.find("tbody input:checkbox").parents("tr");
|
||||||
|
$trs.each(function(i){
|
||||||
|
for (cItem in chosenItems) {
|
||||||
|
if (cItem === $(this).attr("id")) {
|
||||||
|
visibleChosenItems[cItem] = $(this).data('aData');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
files = Object.keys(visibleChosenItems);
|
||||||
|
|
||||||
for (i = 0, length = files.length; i < length; i++) {
|
for (i = 0, length = files.length; i < length; i++) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue