1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-16 20:39:49 +02:00

[ticket/10273] Changed variable names in the quickmodform AJAX.

They're now more descriptive.

PHPBB3-10273
This commit is contained in:
Callum Macrae 2011-10-22 16:48:33 +01:00 committed by Igor Wiedler
parent eabc6d29c4
commit 1d36873afe

View File

@ -62,12 +62,16 @@ $('[data-ajax]').each(function() {
phpbb.ajaxify({ phpbb.ajaxify({
selector: '#quickmodform', selector: '#quickmodform',
exception: function(el, act, data) { exception: function(el, act, data) {
var d = phpbb.parse_querystring(data).action; var action = phpbb.parse_querystring(data).action;
if (d == 'make_normal') if (action === 'make_normal')
{ {
return !(el.find('select option[value="make_global"]').length); return !(el.find('select option[value="make_global"]').length);
} }
return !(d == 'lock' || d == 'unlock' || d == 'delete_topic' || d.slice(0, 5) == 'make_'); else if (action.slice(-4) === 'lock')
{
return false;
}
return !(action === 'delete_topic' || action.slice(0, 5) === 'make_');
} }
}, true); }, true);