mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-30 16:47:59 +01:00
14 lines
234 B
CoffeeScript
14 lines
234 B
CoffeeScript
|
angular.module('ponyfm').factory('lightbox', [
|
||
|
() ->
|
||
|
openDataUrl: (src) ->
|
||
|
$.colorbox
|
||
|
html: '<img src="' + src + '" />'
|
||
|
transition: 'none'
|
||
|
|
||
|
openImageUrl: (src) ->
|
||
|
$.colorbox
|
||
|
href: src
|
||
|
transition: 'none'
|
||
|
])
|
||
|
|