T335: Fix the inability to publish official song remixes in production.

This commit is contained in:
Peter Deltchev 2015-08-12 20:10:19 -07:00
parent 03df4d1ec9
commit 6276f9b564

View file

@ -116,7 +116,7 @@ angular.module('ponyfm').controller "account-track", [
is_vocal: track.is_vocal is_vocal: track.is_vocal
license_id: track.license_id license_id: track.license_id
genre_id: track.genre_id genre_id: track.genre_id
track_type_id: track.track_type_id track_type_id: parseInt(track.track_type_id)
released_at: if track.released_at then track.released_at.date else '' released_at: if track.released_at then track.released_at.date else ''
remove_cover: false remove_cover: false
cover: track.cover_url cover: track.cover_url
@ -144,4 +144,4 @@ angular.module('ponyfm').controller "account-track", [
$scope.$on '$locationChangeStart', (e) -> $scope.$on '$locationChangeStart', (e) ->
return if !$scope.isDirty return if !$scope.isDirty
e.preventDefault() if !confirm('Are you sure you want to leave this page without saving your changes?') e.preventDefault() if !confirm('Are you sure you want to leave this page without saving your changes?')
] ]