diff options
| author | Bobby Wibowo <[email protected]> | 2018-04-26 13:48:44 +0700 |
|---|---|---|
| committer | Crawl <[email protected]> | 2018-04-26 08:48:44 +0200 |
| commit | fa6c33e2e91a3b880b5b6473e868742f9694bd4b (patch) | |
| tree | dbbf442e40ded01013e22cc404114757ad1bd103 /public/js/dashboard.js | |
| parent | Whoops (diff) | |
| download | host.fuwn.me-fa6c33e2e91a3b880b5b6473e868742f9694bd4b.tar.xz host.fuwn.me-fa6c33e2e91a3b880b5b6473e868742f9694bd4b.zip | |
no-mixed-spaces-and-tabs (#95)
I wonder why I can't see the diffs from my vscode 🤔
Diffstat (limited to 'public/js/dashboard.js')
| -rw-r--r-- | public/js/dashboard.js | 16 |
1 files changed, 8 insertions, 8 deletions
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 }) |