Merge branch 'ticket/sumanai/12843' into develop-ascraeus

* ticket/sumanai/12843:
  [ticket/12843] Fix Mark forums read browser console error
This commit is contained in:
Joas Schilling 2014-07-27 19:51:38 +02:00
commit e94f24c821
2 changed files with 12 additions and 11 deletions

View file

@ -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().
*

View file

@ -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;