Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
subpath = subpath || 0;
if (lastpanel.getActiveTab) {
// we assume lastpanel is a tabpanel
- if (lastpanel.getActiveTab().getItemId() === subpath) {
- // we are already there
- } else {
+ if (lastpanel.getActiveTab().getItemId() !== subpath) {
// set the active tab
lastpanel.setActiveTab(subpath);
}
+ // else we are already there
}
action.stop();
return;
header: gettext('Languages'),
editor: 'PMG.SpamDetectorLanguages',
renderer: function(value) {
- return value ? value : 'all';
+ return value || 'all';
}
};