Jamstash/app/archive
Hyzual 5d385149f3 Refactor song selection across the app
- Added a new SelectedSongs service. Its purpose is to store an array of selected songs and all behaviour associated with it : adding songs to it, removing them, toggling a song, etc. It also changes each song's selected property.
- Removed selectAll, selectNone, playAll, playFrom, addSongsToQueue and selectSong from main-controller.js. Those are now defined either in queue.js, subsonic.js or archive.js, depending on where they are used. I know it does add some duplication between archive.js and subsonic.js, but this will be addressed in a later commit (maybe by creating a shared service).
- Refactored subsonic-service.js' addToPlaylist() and split it between subsonic-service.js and subsonic.js (like all the other playlist-related functions).
- Moved subsonic-service.js' songsRemoveSelected() to subsonic.js since it only removes songs from the scope.
- Removed $rootScope and utils (unused dependencies) from subsonic-service.js
2015-07-12 01:52:42 +02:00
..
archive-service.js Removes jquery.base64.js (unused), replaced jquery.dateFormat-1.0.js with its bower version 2015-05-01 13:08:05 +02:00
archive-service_test.js Minor code style adjustments to comply with our jscsrc. 2015-07-07 22:10:22 +02:00
archive.html Refactor song selection across the app 2015-07-12 01:52:42 +02:00
archive.js Refactor song selection across the app 2015-07-12 01:52:42 +02:00
json_collections.json Adds the first working grunt build aimed for deployment on production. 2014-11-09 18:39:02 +01:00