mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-15 20:17:36 +02:00
[ticket/10273] Changed variable names in the quickmodform AJAX.
They're now more descriptive. PHPBB3-10273
This commit is contained in:
parent
eabc6d29c4
commit
1d36873afe
@ -62,12 +62,16 @@ $('[data-ajax]').each(function() {
|
||||
phpbb.ajaxify({
|
||||
selector: '#quickmodform',
|
||||
exception: function(el, act, data) {
|
||||
var d = phpbb.parse_querystring(data).action;
|
||||
if (d == 'make_normal')
|
||||
var action = phpbb.parse_querystring(data).action;
|
||||
if (action === 'make_normal')
|
||||
{
|
||||
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user