From 3a67cd4728e329f7b39ac23f5013a0a0fc95c0f0 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Tue, 15 Apr 2014 14:17:32 +0200 Subject: [PATCH] Fixed global vars --- assets/js/photo.js | 3 ++- assets/js/settings.js | 6 ++++-- assets/js/upload.js | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/js/photo.js b/assets/js/photo.js index 75b3a07..a6f5d98 100644 --- a/assets/js/photo.js +++ b/assets/js/photo.js @@ -362,7 +362,8 @@ photo = { editTags: function(photoIDs) { var oldTags = "", - tags = ""; + tags = "", + buttons; if (!photoIDs) return false; if (photoIDs instanceof Array===false) photoIDs = [photoIDs]; diff --git a/assets/js/settings.js b/assets/js/settings.js index 09d1b04..fa664b6 100644 --- a/assets/js/settings.js +++ b/assets/js/settings.js @@ -13,7 +13,8 @@ var settings = { dbUser, dbPassword, dbHost, - buttons; + buttons, + params; buttons = [ ["Connect", function() { @@ -191,7 +192,8 @@ var settings = { setSorting: function() { var buttons, - sorting; + sorting, + params; buttons = [ ["Change Sorting", function() { diff --git a/assets/js/upload.js b/assets/js/upload.js index 14f5ed9..687a92b 100755 --- a/assets/js/upload.js +++ b/assets/js/upload.js @@ -132,7 +132,8 @@ upload = { var albumID = album.getID(), params, extension, - buttons; + buttons, + link; if (albumID===false) albumID = 0;