mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 21:18:00 +01:00
Fixed the release date picker when no date is chosen.
This commit is contained in:
parent
093f7ffb9d
commit
3ffa8dd07a
1 changed files with 2 additions and 2 deletions
|
@ -100,10 +100,10 @@ angular.module('ponyfm').directive 'pfmTrackEditor', () ->
|
||||||
if typeof(value) == 'object'
|
if typeof(value) == 'object'
|
||||||
formData.append name, value, value.name
|
formData.append name, value, value.name
|
||||||
|
|
||||||
if name == 'released_at' and value != null
|
if name == 'released_at' and value? and value != ''
|
||||||
formData.append name, value.toISOString()
|
formData.append name, value.toISOString()
|
||||||
|
|
||||||
else if value != null
|
else if value?
|
||||||
formData.append name, value
|
formData.append name, value
|
||||||
|
|
||||||
if parseInt($scope.track.track_type_id) == 2
|
if parseInt($scope.track.track_type_id) == 2
|
||||||
|
|
Loading…
Reference in a new issue