From a8de0af2732020e9f9d60dcf6a4571fe62e242de Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Wed, 5 Sep 2012 22:22:04 +0200 Subject: [PATCH] Add 'var' before some global js vars --- core/js/oc-dialogs.js | 2 +- core/js/oc-vcategories.js | 2 +- settings/js/users.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 0fa41696a16..4dd3c89c14d 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -22,7 +22,7 @@ /** * this class to ease the usage of jquery dialogs */ -OCdialogs = { +var OCdialogs = { /** * displays alert dialog * @param text content of dialog diff --git a/core/js/oc-vcategories.js b/core/js/oc-vcategories.js index dfed8223b1b..c7b536a2a7d 100644 --- a/core/js/oc-vcategories.js +++ b/core/js/oc-vcategories.js @@ -1,4 +1,4 @@ -OCCategories={ +var OCCategories={ edit:function(){ if(OCCategories.app == undefined) { OC.dialogs.alert('OCCategories.app is not set!'); diff --git a/settings/js/users.js b/settings/js/users.js index d0a3c1c21ab..20bd94993bc 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -4,7 +4,7 @@ * See the COPYING-README file. */ -UserList={ +var UserList={ useUndo:true, /** -- 2.39.5