From cbce3364783c1fcfac975b6ebb248cf17788f246 Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Sun, 14 Feb 2016 02:53:27 -0800 Subject: [PATCH] Converted uses of bindonce to Angular one-time bindings. --- app/Models/Track.php | 1 + public/templates/albums/show.html | 54 +-- public/templates/artists/_show_layout.html | 14 +- public/templates/artists/content.html | 12 +- public/templates/artists/profile.html | 10 +- public/templates/directives/albums-list.html | 18 +- public/templates/directives/comments.html | 15 +- .../templates/directives/playlists-list.html | 18 +- public/templates/directives/track-editor.html | 2 +- public/templates/directives/track-player.html | 2 +- public/templates/directives/tracks-list.html | 22 +- public/templates/directives/users-list.html | 10 +- public/templates/playlists/show.html | 50 +-- public/templates/tracks/edit.html | 4 +- public/templates/tracks/frame.html | 42 +-- public/templates/tracks/index.html | 24 +- public/templates/tracks/show.html | 24 +- resources/assets/scripts/app/app.coffee | 6 +- .../app/directives/image-upload.coffee | 1 + .../app/directives/track-editor.coffee | 3 +- resources/assets/scripts/base/bindonce.js | 325 ------------------ 21 files changed, 172 insertions(+), 485 deletions(-) delete mode 100644 resources/assets/scripts/base/bindonce.js diff --git a/app/Models/Track.php b/app/Models/Track.php index 3dafea24..d0fdfdf0 100644 --- a/app/Models/Track.php +++ b/app/Models/Track.php @@ -439,6 +439,7 @@ class Track extends Model implements Searchable $returnValue = self::mapPrivateTrackSummary($track); $returnValue['album_id'] = $track->album_id; $returnValue['show_songs'] = $showSongs; + $returnValue['cover_id'] = $track->cover_id; $returnValue['real_cover_url'] = $track->getCoverUrl(Image::NORMAL); $returnValue['cover_url'] = $track->hasCover() ? $track->getCoverUrl(Image::NORMAL) : null; $returnValue['released_at'] = $track->released_at ? $track->released_at->toDateString() : null; diff --git a/public/templates/albums/show.html b/public/templates/albums/show.html index c8da28a0..2e41b3c5 100644 --- a/public/templates/albums/show.html +++ b/public/templates/albums/show.html @@ -1,64 +1,66 @@ -
+