diff options
author | Callum Macrae <callum@lynxphp.com> | 2011-07-26 16:25:04 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2012-03-31 02:09:12 +0200 |
commit | 22c6953c116e24cbe278f0fe63aabaf950c843e3 (patch) | |
tree | 691994d73f367687da02f080c907c7d070860aca /phpBB/styles/script.js | |
parent | e4ea4d1c579477389349a06190643391ea8740fc (diff) | |
download | forums-22c6953c116e24cbe278f0fe63aabaf950c843e3.tar forums-22c6953c116e24cbe278f0fe63aabaf950c843e3.tar.gz forums-22c6953c116e24cbe278f0fe63aabaf950c843e3.tar.bz2 forums-22c6953c116e24cbe278f0fe63aabaf950c843e3.tar.xz forums-22c6953c116e24cbe278f0fe63aabaf950c843e3.zip |
[feature/ajax] Fixed a small bug in the JavaScript.
The bug meant that code outside of the function that ran on document ready would
not be able to access the phpbb object.
PHPBB3-10270
Diffstat (limited to 'phpBB/styles/script.js')
-rw-r--r-- | phpBB/styles/script.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/styles/script.js b/phpBB/styles/script.js index 8c7324e39a..72e3c59e75 100644 --- a/phpBB/styles/script.js +++ b/phpBB/styles/script.js @@ -1,4 +1,6 @@ -;(function($) { //avoid conflicts with other libraries +var phpbb = {}; + +(function($) { //avoid conflicts with other libraries $.querystring = function(string) { @@ -13,8 +15,6 @@ $.querystring = function(string) { } -var phpbb = {}; - var dark = $('<div id="darkenwrapper"><div id="darken"> </div></div>'); $('body').append(dark); |