From cf7bd8b9e6c547db897698751fe9cfda945a6257 Mon Sep 17 00:00:00 2001 From: Josef Citrine Date: Mon, 29 Aug 2016 23:32:58 +0100 Subject: [PATCH] Fixed override detection --- public/templates/admin/classifier.html | 2 +- public/templates/directives/paged-tracks-list.html | 3 ++- public/templates/directives/tracks-list.html | 4 ++-- .../assets/scripts/app/directives/paged-tracks-list.coffee | 1 + resources/assets/scripts/app/directives/tracks-list.coffee | 1 + 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/public/templates/admin/classifier.html b/public/templates/admin/classifier.html index 5f55f3ac..620e4e0a 100644 --- a/public/templates/admin/classifier.html +++ b/public/templates/admin/classifier.html @@ -1,4 +1,4 @@
- +
diff --git a/public/templates/directives/paged-tracks-list.html b/public/templates/directives/paged-tracks-list.html index d82d629b..b9dbce61 100644 --- a/public/templates/directives/paged-tracks-list.html +++ b/public/templates/directives/paged-tracks-list.html @@ -17,6 +17,7 @@
- + +
diff --git a/public/templates/directives/tracks-list.html b/public/templates/directives/tracks-list.html index beaa1cd6..28aca3a8 100644 --- a/public/templates/directives/tracks-list.html +++ b/public/templates/directives/tracks-list.html @@ -16,7 +16,7 @@ - + {{::track.title}} {{::track.stats.favourites}}f @@ -25,7 +25,7 @@ {{::track.user.name}} / {{::track.genre.name}} - + {{::track.title}} {{::track.stats.favourites}}f diff --git a/resources/assets/scripts/app/directives/paged-tracks-list.coffee b/resources/assets/scripts/app/directives/paged-tracks-list.coffee index 3aa47485..2b9f319c 100644 --- a/resources/assets/scripts/app/directives/paged-tracks-list.coffee +++ b/resources/assets/scripts/app/directives/paged-tracks-list.coffee @@ -22,6 +22,7 @@ module.exports = angular.module('ponyfm').directive 'pfmPagedTracksList', () -> type: '@' class: '@class' clickOverride: '&' + hasOverride: '@' controller: [ '$scope', 'tracks', '$state', '$location' diff --git a/resources/assets/scripts/app/directives/tracks-list.coffee b/resources/assets/scripts/app/directives/tracks-list.coffee index a2d49ddc..5b8f3855 100644 --- a/resources/assets/scripts/app/directives/tracks-list.coffee +++ b/resources/assets/scripts/app/directives/tracks-list.coffee @@ -23,6 +23,7 @@ module.exports = angular.module('ponyfm').directive 'pfmTracksList', () -> tracks: '=tracks' class: '@class' clickOverride: '&' + hasOverride: '@' controller: [ '$modal', '$scope', 'favourites', 'player', 'playlists', 'auth'