aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorSumanai <xisp_ya@mail.ru>2014-07-12 22:03:58 +0400
committerJoas Schilling <nickvergessen@gmx.de>2014-07-27 19:50:48 +0200
commitab8400a616c462bcdb963ce2edc35709b19eea7d (patch)
treeaa67867d3333634301505771faec2c02df9ea274 /phpBB
parent48679eeff884ce564f7a5ceb7db1b6c64e5dcb67 (diff)
downloadforums-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')
-rw-r--r--phpBB/assets/javascript/core.js12
-rw-r--r--phpBB/styles/prosilver/template/ajax.js11
2 files changed, 12 insertions, 11 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().
*
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js
index e9f8064b9e..0a8366290a 100644
--- a/phpBB/styles/prosilver/template/ajax.js
+++ b/phpBB/styles/prosilver/template/ajax.js
@@ -2,17 +2,6 @@
"use strict";
-/**
-* 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);
-};
-
// This callback will mark all forum icons read
phpbb.addAjaxCallback('mark_forums_read', function(res) {
var readTitle = res.NO_UNREAD_POSTS;