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:
parent
eabc6d29c4
commit
1d36873afe
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user