mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-02-18 02:54:21 +01:00
T335: Moved the fix to the comparison where it's needed.
This commit is contained in:
parent
6276f9b564
commit
a90e33bb04
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ angular.module('ponyfm').controller "account-track", [
|
||||||
else if value != null
|
else if value != null
|
||||||
formData.append name, value
|
formData.append name, value
|
||||||
|
|
||||||
if $scope.edit.track_type_id == 2
|
if parseInt($scope.edit.track_type_id) == 2
|
||||||
formData.append 'show_song_ids', _.map(_.values($scope.selectedSongs), (s) -> s.id).join()
|
formData.append 'show_song_ids', _.map(_.values($scope.selectedSongs), (s) -> s.id).join()
|
||||||
|
|
||||||
xhr.open 'POST', '/api/web/tracks/edit/' + $scope.edit.id, true
|
xhr.open 'POST', '/api/web/tracks/edit/' + $scope.edit.id, true
|
||||||
|
@ -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: parseInt(track.track_type_id)
|
track_type_id: 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
|
||||||
|
|
Loading…
Reference in a new issue