[ticket/10271] Added a comment to the AJAXification of quick-mod tools.

The comment clarifies which make_ functions use AJAX.

PHPBB3-10271
This commit is contained in:
Callum Macrae 2011-11-17 17:17:38 +00:00 committed by Igor Wiedler
parent e5d0f2c6ad
commit 6d8ecd7104

View file

@ -69,8 +69,10 @@ phpbb.ajaxify({
} }
else if (action.slice(-4) === 'lock') else if (action.slice(-4) === 'lock')
{ {
// Return false for both lock and unlock
return false; return false;
} }
// make_sticky, make_announce and make_global all use AJAX.
return !(action === 'delete_topic' || action.slice(0, 5) === 'make_'); return !(action === 'delete_topic' || action.slice(0, 5) === 'make_');
} }
}, true); }, true);