From ac0da61ef7a7724f00ec6d44c085f92713f7fa30 Mon Sep 17 00:00:00 2001 From: nelsonlaquet Date: Sun, 1 Sep 2013 05:06:32 -0500 Subject: [PATCH] many things --- public/images/tumblr-share.png | Bin 0 -> 702 bytes public/scripts/app/services/playlists.coffee | 8 ++++++-- public/templates/albums/show.html | 2 +- public/templates/playlists/show.html | 2 +- public/templates/tracks/show.html | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 public/images/tumblr-share.png diff --git a/public/images/tumblr-share.png b/public/images/tumblr-share.png new file mode 100644 index 0000000000000000000000000000000000000000..a0a8cbb5118b741968dd09787e66abe09ed40546 GIT binary patch literal 702 zcmV;v0zv(WP)7YBeUt z8q>1f>~40~nH587cM7QwW@q;C_Ba3ccIF8K>D5XixBeoXk0|~?Mi52xV~%aZXscga zwa@n(AKzUj$^3>(Ye%=8O$}y2WCemC^apetbW9^tuV&8+f+&&LQ2uBrnnX)8Va~PP zfPRb#kckAwU@QVjPUw~mv(v$HjP0)*7HmRGMOmU_J1|WPZ1x(Z@jaNlaSHL3L2gVh zgRm5BT39bjMnV`F9(32Hu2MDjl1dqiupq|+xVf0cvAsLs_bKjsJ{?C)x1ee|sy}{l zpf&?y(T~WlisRaeeG7b7P9AXQS8pmP-79ldx(feIx$(V@hfkhi>y}MeSIE1*iOCmG z=QT`K8{888QRo(RVZh9+hO2iU6q&at?*H{!~MoRhrATtzW+d>t~WLOzF7B#5Ww=a|07*qoM6N<$f|L+C6951J literal 0 HcmV?d00001 diff --git a/public/scripts/app/services/playlists.coffee b/public/scripts/app/services/playlists.coffee index 87dfdc97..b11efb82 100644 --- a/public/scripts/app/services/playlists.coffee +++ b/public/scripts/app/services/playlists.coffee @@ -36,8 +36,12 @@ angular.module('ponyfm').factory('playlists', [ return playlistDef if !force && playlistDef playlistDef = new $.Deferred() - $http.get('/api/web/playlists/owned').success (playlists) -> - playlistDef.resolve playlists + + if auth.data.isLogged + $http.get('/api/web/playlists/owned').success (playlists) -> + playlistDef.resolve playlists + else + playlistDef.resolve [] playlistDef diff --git a/public/templates/albums/show.html b/public/templates/albums/show.html index d74594bd..80461e8c 100644 --- a/public/templates/albums/show.html +++ b/public/templates/albums/show.html @@ -25,7 +25,7 @@ diff --git a/public/templates/playlists/show.html b/public/templates/playlists/show.html index 1e3de90f..e3aadd10 100644 --- a/public/templates/playlists/show.html +++ b/public/templates/playlists/show.html @@ -24,7 +24,7 @@ diff --git a/public/templates/tracks/show.html b/public/templates/tracks/show.html index 41895ed6..c5a195c7 100644 --- a/public/templates/tracks/show.html +++ b/public/templates/tracks/show.html @@ -44,7 +44,7 @@