aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/styles/prosilver/template/ajax.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js
index ca720f77eb..b24ab6d4d7 100644
--- a/phpBB/styles/prosilver/template/ajax.js
+++ b/phpBB/styles/prosilver/template/ajax.js
@@ -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);