aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-01-10 11:11:30 +0100
committerMarc Alexander <admin@m-a-styles.de>2013-01-10 11:11:30 +0100
commitf7af4eb2e98a70cce267d01828437e205527e47f (patch)
tree3c346d8e21291607f47dd69784e17f6c3af34f86 /phpBB/styles
parent0fc863c68a6832fe6589b14b2ca9107f7b570621 (diff)
downloadforums-f7af4eb2e98a70cce267d01828437e205527e47f.tar
forums-f7af4eb2e98a70cce267d01828437e205527e47f.tar.gz
forums-f7af4eb2e98a70cce267d01828437e205527e47f.tar.bz2
forums-f7af4eb2e98a70cce267d01828437e205527e47f.tar.xz
forums-f7af4eb2e98a70cce267d01828437e205527e47f.zip
[ticket/11314] Use return variable instead of overusing the return keyword
Use a return variable and modify it to our needs. PHPBB3-11314
Diffstat (limited to 'phpBB/styles')
-rw-r--r--phpBB/styles/prosilver/template/ajax.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js
index 8583fb565c..771981b3e3 100644
--- a/phpBB/styles/prosilver/template/ajax.js
+++ b/phpBB/styles/prosilver/template/ajax.js
@@ -173,18 +173,19 @@ phpbb.ajaxify({
refresh: true,
filter: function (data) {
var action = $('#quick-mod-select').val();
+ var ret = false;
if (action === 'make_normal') {
- return $(this).find('select option[value="make_global"]').length > 0;
+ ret = $(this).find('select option[value="make_global"]').length > 0;
} else if (action === 'lock' || action === 'unlock') {
- return true;
+ ret = true;
}
if (action === 'delete_topic' || action === 'make_sticky' || action === 'make_announce' || action === 'make_global') {
- return true;
+ ret = true;
}
- return false;
+ return ret;
}
});