children: [
{
text: gettext('Whitelist'),
- //iconCls: 'fa fa-cubes',
+ iconCls: 'fa fa-file-o',
path: 'pmgUserWhitelist',
leaf: true
},
{
text: gettext('Blacklist'),
- //iconCls: 'fa fa-cubes',
+ iconCls: 'fa fa-file',
path: 'pmgUserBlacklist',
leaf: true
}
action: 'changePath',
before: 'beforeChangePath',
conditions : {
- ':path' : '(?:([%a-zA-Z0-9\-\_\s,]+))',
- ':subpath' : '(?:(?::)([%a-zA-Z0-9\-\_\s,]+))?'
+ ':path' : '(?:([%a-zA-Z0-9\\-\\_\\s,]+))',
+ ':subpath' : '(?:(?::)([%a-zA-Z0-9\\-\\_\\s,]+))?'
}
}
},
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;
});
var qa = PMG.Utils.extractQuarantineAction();
+ var token;
if (qa) {
- var token = 'pmgSpamQuarantine';
+ token = 'pmgSpamQuarantine';
if (qa.action === 'blacklist') { token = 'pmgUserBlacklist'; }
if (qa.action === 'whitelist') { token = 'pmgUserWhitelist'; }
if (qa.cselect) {
} else {
// select treeitem and load page from url fragment
- var token = Ext.util.History.getToken() || 'pmgSpamQuarantine';
+ token = Ext.util.History.getToken() || 'pmgSpamQuarantine';
this.redirectTo(token, true);
}
}
plugins: 'viewport',
- layout: 'border',
+ layout: {
+ type: 'border'
+ },
items: [
{
},
{
xtype: 'panel',
- layout: 'card',
+ layout: {
+ type: 'card'
+ },
region: 'center',
border: false,
reference: 'contentpanel'