diff options
author | Sumanai <xisp_ya@mail.ru> | 2014-07-12 22:03:58 +0400 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-07-27 19:50:48 +0200 |
commit | ab8400a616c462bcdb963ce2edc35709b19eea7d (patch) | |
tree | aa67867d3333634301505771faec2c02df9ea274 /phpBB/assets/javascript | |
parent | 48679eeff884ce564f7a5ceb7db1b6c64e5dcb67 (diff) | |
download | forums-ab8400a616c462bcdb963ce2edc35709b19eea7d.tar forums-ab8400a616c462bcdb963ce2edc35709b19eea7d.tar.gz forums-ab8400a616c462bcdb963ce2edc35709b19eea7d.tar.bz2 forums-ab8400a616c462bcdb963ce2edc35709b19eea7d.tar.xz forums-ab8400a616c462bcdb963ce2edc35709b19eea7d.zip |
[ticket/12843] Fix Mark forums read browser console error
When you click on "Mark forums read" in the browser console error occurs
ReferenceError: assignment to undeclared variable phpbbAlertTimer
ajax.js (line13)
PHPBB3-12843
Diffstat (limited to 'phpBB/assets/javascript')
-rw-r--r-- | phpBB/assets/javascript/core.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js index 296c5b0ef9..d08e6c223e 100644 --- a/phpBB/assets/javascript/core.js +++ b/phpBB/assets/javascript/core.js @@ -47,6 +47,18 @@ phpbb.clearLoadingTimeout = function() { } }; + +/** +* Close popup alert after a specified delay +* +* @param int Delay in ms until darkenwrapper's click event is triggered +*/ +phpbb.closeDarkenWrapper = function(delay) { + phpbbAlertTimer = setTimeout(function() { + $('#darkenwrapper').trigger('click'); + }, delay); +}; + /** * Display a simple alert similar to JSs native alert(). * |