Fix selection bug

This commit is contained in:
Duncan Sommerville 2015-08-18 17:51:41 -04:00
parent 0ad51dae09
commit 5f4935481a
1 changed files with 5 additions and 4 deletions

View File

@ -322,8 +322,8 @@ var AIRTIME = (function(AIRTIME) {
mod.selectAll = function($els) {
$els.each(function(i, el){
mod.highlightItem(el);
mod.addToChosen(el);
mod.highlightItem($(el));
mod.addToChosen($(el));
});
$previouslySelected = $els.last();
mod.checkToolBarIcons();
@ -331,8 +331,9 @@ var AIRTIME = (function(AIRTIME) {
mod.deselectAll = function($els) {
$els.each(function(i, el){
mod.unHighlightItem(el);
mod.removeFromChosen(el);
mod.unHighlightItem($(el));
mod.removeFromChosen($(el));
mod.uncheckItem($(el));
});
$previouslySelected = undefined;
mod.checkToolBarIcons();