From fa6c33e2e91a3b880b5b6473e868742f9694bd4b Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Thu, 26 Apr 2018 13:48:44 +0700 Subject: no-mixed-spaces-and-tabs (#95) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I wonder why I can't see the diffs from my vscode 🤔 --- public/js/dashboard.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'public/js/dashboard.js') diff --git a/public/js/dashboard.js b/public/js/dashboard.js index 7309908..2715f47 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -337,7 +337,7 @@ panel.getAlbums = function(){ panel.renameAlbum = function(id){ swal({ - title: "Rename album", + title: "Rename album", text: "New name you want to give the album:", type: "input", showCancelButton: true, @@ -345,13 +345,13 @@ panel.renameAlbum = function(id){ animation: "slide-from-top", inputPlaceholder: "My super album" },function(inputValue){ - if (inputValue === false) return false; - if (inputValue === "") { - swal.showInputError("You need to write something!"); - return false - } - - axios.post('/api/albums/rename', { + if (inputValue === false) return false; + if (inputValue === "") { + swal.showInputError("You need to write something!"); + return false + } + + axios.post('/api/albums/rename', { id: id, name: inputValue }) -- cgit v1.2.3