Fixed global vars

This commit is contained in:
Tobias Reich 2014-04-15 14:17:32 +02:00
parent 76d04922f2
commit 3a67cd4728
3 changed files with 8 additions and 4 deletions

View File

@ -362,7 +362,8 @@ photo = {
editTags: function(photoIDs) { editTags: function(photoIDs) {
var oldTags = "", var oldTags = "",
tags = ""; tags = "",
buttons;
if (!photoIDs) return false; if (!photoIDs) return false;
if (photoIDs instanceof Array===false) photoIDs = [photoIDs]; if (photoIDs instanceof Array===false) photoIDs = [photoIDs];

View File

@ -13,7 +13,8 @@ var settings = {
dbUser, dbUser,
dbPassword, dbPassword,
dbHost, dbHost,
buttons; buttons,
params;
buttons = [ buttons = [
["Connect", function() { ["Connect", function() {
@ -191,7 +192,8 @@ var settings = {
setSorting: function() { setSorting: function() {
var buttons, var buttons,
sorting; sorting,
params;
buttons = [ buttons = [
["Change Sorting", function() { ["Change Sorting", function() {

View File

@ -132,7 +132,8 @@ upload = {
var albumID = album.getID(), var albumID = album.getID(),
params, params,
extension, extension,
buttons; buttons,
link;
if (albumID===false) albumID = 0; if (albumID===false) albumID = 0;