aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles
diff options
context:
space:
mode:
authorCallum Macrae <callum@lynxphp.com>2011-10-22 16:48:33 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-03-31 02:09:20 +0200
commit1d36873afeedff9fd766e3b971ca5817ea2fb75e (patch)
tree6b442e30ba7da93a1a9f5bc9e351a6e7b9f10773 /phpBB/styles
parenteabc6d29c4ef87a2f599dd81e98e42120e1ad993 (diff)
downloadforums-1d36873afeedff9fd766e3b971ca5817ea2fb75e.tar
forums-1d36873afeedff9fd766e3b971ca5817ea2fb75e.tar.gz
forums-1d36873afeedff9fd766e3b971ca5817ea2fb75e.tar.bz2
forums-1d36873afeedff9fd766e3b971ca5817ea2fb75e.tar.xz
forums-1d36873afeedff9fd766e3b971ca5817ea2fb75e.zip
[ticket/10273] Changed variable names in the quickmodform AJAX.
They're now more descriptive. PHPBB3-10273
Diffstat (limited to 'phpBB/styles')
-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);