[ticket/10271] Improved the comments on return_handler.

PHPBB3-10271
This commit is contained in:
Callum Macrae 2011-10-22 16:40:37 +01:00 committed by Igor Wiedler
parent 8120023605
commit 8a2f5f3269

View file

@ -235,8 +235,13 @@ phpbb.ajaxify = function(options, refresh, callback) {
/** /**
* This is a private function used to handle the callbacks, refreshes * This is a private function used to handle the callbacks, refreshes
* and alert. It cannot be called from outside this function, and is purely * and alert. It calls the callback, refreshes the page if necessary, and
* here to avoid repetition of code. * displays an alert to the user and removes it after an amount of time.
*
* It cannot be called from outside this function, and is purely here to
* avoid repetition of code.
*
* @param object res The object sent back by the server.
*/ */
function return_handler(res) function return_handler(res)
{ {