Skip to content

Commit c69106a

Browse files
committed
Fix rename
1 parent a2a420a commit c69106a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/assets/javascripts/controllers.js.coffee

+3-4
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ app.controller 'PlayerCtrl',['$scope', 'AuthFactory', 'ApiFactory', '$sce', '$ro
7373
$rootScope.$broadcast 'audio.set', $sce.trustAsResourceUrl(song.file_url), song, _.indexOf(playlist.songs, song)+1, playlist.songs.length, $scope.currentTime
7474
window.setTimeout () ->
7575
$rootScope.$broadcast 'audio.play'
76-
, 2000
76+
, 500
7777

7878
$scope.selectPlaylist = (playlist) ->
7979
if !playlist
@@ -167,9 +167,8 @@ app.controller 'PlayerCtrl',['$scope', 'AuthFactory', 'ApiFactory', '$sce', '$ro
167167
$scope.selectedSongs = () ->
168168
_.select($scope.current_playlist.songs, (song) -> song.selected)
169169
$scope.finishEditing = (song) ->
170-
if song.save
171-
return song.save()
172-
song = Restangular.restangularizeElement(undefined, song, 'songs', {})
170+
if !song.save
171+
song = Restangular.restangularizeElement(undefined, song, 'songs', {})
173172
song.save()
174173
song.editing = false
175174
]

0 commit comments

Comments
 (0)