CC-3742 : Library: could be confused by carrying over selected state betwee pages

This commit is contained in:
Naomi Aro 2012-05-02 14:40:27 +02:00
parent c5f9288aab
commit 08d939d736
3 changed files with 31 additions and 18 deletions

View file

@ -18,6 +18,22 @@ var AIRTIME = (function(AIRTIME) {
return selected;
};
mod.getChosenAudioFilesLength = function(){
var files = Object.keys(chosenItems),
i, length,
count = 0,
reAudio=/^au/ ;
for (i = 0, length = files.length; i < length; i++) {
if (files[i].search(reAudio) !== -1) {
count++;
}
}
return count;
};
mod.createToolbarDropDown = function() {
$.contextMenu({