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:
parent
c478f0116f
commit
3324113af8
5 changed files with 28 additions and 18 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue