diff --git a/public/templates/admin/genres.html b/public/templates/admin/genres.html
index 3f3b82da..acb709e5 100644
--- a/public/templates/admin/genres.html
+++ b/public/templates/admin/genres.html
@@ -24,9 +24,9 @@
|
{{ genre.track_count }} |
-
-
-
+
+
+
|
diff --git a/resources/assets/scripts/app/controllers/admin-genres.coffee b/resources/assets/scripts/app/controllers/admin-genres.coffee
index 7242b5e1..4893ecc0 100644
--- a/resources/assets/scripts/app/controllers/admin-genres.coffee
+++ b/resources/assets/scripts/app/controllers/admin-genres.coffee
@@ -50,17 +50,16 @@ angular.module('ponyfm').controller 'admin-genres', [
genre.isSaving = false
- $scope.startMerge = (genreToDelete) ->
- $scope.genreToDelete = genreToDelete
+ $scope.startMerge = (destinationGenre) ->
+ $scope.destinationGenre = destinationGenre
$scope.mergeInProgress = true
$scope.cancelMerge = () ->
- $scope.genreToDelete = null
+ $scope.destinationGenre = null
$scope.mergeInProgress = false
- $scope.finishMerge = (destinationGenre) ->
- $scope.mergeInProgress = false
- genres.merge($scope.genreToDelete.id, destinationGenre.id)
+ $scope.finishMerge = (genreToDelete) ->
+ genres.merge(genreToDelete.id, $scope.destinationGenre.id)
.done (response) ->
loadGenres()
]