5.3 release

This commit is contained in:
Trevor Squillario 2014-12-20 17:18:56 -05:00
parent fab90cbabd
commit dea8b9ffd9
12 changed files with 75 additions and 433 deletions

View file

@ -108,6 +108,18 @@
setTimeout(function () { if (submenu_active === false) $('div.submenu').stop().fadeOut(); }, 10000);
}
};
$scope.$watchCollection('queue', function(newItem, oldItem) {
if (oldItem.length != newItem.length) {
$rootScope.showQueue();
}
/*
for (var index in newCol) {
var item = newCol[index];
item.order = parseInt(index) + 1;
}
*/
});
$rootScope.showQueue = function () {
$('#SideBar').css('display', 'block');
$('#right-component').removeClass('lgcolumn_expanded');
@ -123,6 +135,13 @@
$rootScope.hideQueue();
}
};
$scope.toggleQueue = function () {
if ($('#SideBar').css('display') == 'none') {
$rootScope.showQueue();
} else {
$rootScope.hideQueue();
}
};
$rootScope.showArtists = function () {
$('#left-component').css('display', '');
$('#right-component').removeClass('lgcolumn_expandedleft');