1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

[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
This commit is contained in:
Callum Macrae 2011-07-26 16:25:04 +01:00 committed by Igor Wiedler
parent e4ea4d1c57
commit 22c6953c11

View File

@ -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">&nbsp;</div></div>');
$('body').append(dark);