Browse Source

Fixed missing params var when Album::add returns and error

Tobias Reich 9 years ago
parent
commit
7dc4e01313
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/scripts/album.js

+ 5 - 1
src/scripts/album.js

@@ -112,7 +112,11 @@ album.add = function() {
 
 		if (title.length===0) title = 'Untitled'
 
-		api.post('Album::add', { title }, function(data) {
+		let params = {
+			title
+		}
+
+		api.post('Album::add', params, function(data) {
 
 			// Avoid first album to be true
 			if (data===true) data = 1