When changing song, if fancybox is open, opens the new song's cover art in it

- Fixes a bug with the Page service. There was an error when changing songs.
- Removes fancyboxOpenImage from utils, it's directly in the main controller so we can call it from the directive. It didn't need to be in a service anymore since we have a player directive.
This commit is contained in:
Hyzual 2015-01-11 13:21:07 +01:00
parent c478f0116f
commit 3324113af8
5 changed files with 28 additions and 18 deletions

View file

@ -148,7 +148,20 @@ angular.module('JamStash')
};
$scope.fancyboxOpenImage = function (url) {
utils.fancyboxOpenImage(url);
$.fancybox.open({
helpers : {
overlay : {
css : {
'background' : 'rgba(0, 0, 0, 0.15)'
}
}
},
hideOnContentClick: true,
type: 'image',
openEffect: 'none',
closeEffect: 'none',
href: url
});
};
$('#audiocontainer .scrubber').mouseover(function (e) {