Pony.fm/resources/assets/scripts/app/services/lightbox.coffee

14 lines
315 B
CoffeeScript
Raw Normal View History

2015-08-31 17:42:21 +02:00
angular.module('ponyfm').factory('lightbox', [
2015-10-25 03:35:37 +01:00
() ->
openDataUrl: (src) ->
$.colorbox
html: '<img src="' + src + '" />'
transition: 'none'
2015-08-31 17:42:21 +02:00
2015-10-25 03:35:37 +01:00
openImageUrl: (src) ->
$.colorbox
href: src
transition: 'none'
2015-08-31 17:42:21 +02:00
])