aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets/javascript
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-07-27 19:51:38 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-07-27 19:51:38 +0200
commite94f24c8217d0a8837fd245292169e68c640c2c7 (patch)
tree81fcd32cac3aee1a4398761e0750424fa2218a77 /phpBB/assets/javascript
parente226c99474f69e822eaff51bd33c83b060ed950c (diff)
parentab8400a616c462bcdb963ce2edc35709b19eea7d (diff)
downloadforums-e94f24c8217d0a8837fd245292169e68c640c2c7.tar
forums-e94f24c8217d0a8837fd245292169e68c640c2c7.tar.gz
forums-e94f24c8217d0a8837fd245292169e68c640c2c7.tar.bz2
forums-e94f24c8217d0a8837fd245292169e68c640c2c7.tar.xz
forums-e94f24c8217d0a8837fd245292169e68c640c2c7.zip
Merge branch 'ticket/sumanai/12843' into develop-ascraeus
* ticket/sumanai/12843: [ticket/12843] Fix Mark forums read browser console error
Diffstat (limited to 'phpBB/assets/javascript')
-rw-r--r--phpBB/assets/javascript/core.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index b905c4c82d..388f31698f 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -48,6 +48,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().
*