mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 20:44:50 +00:00
Fixed bug in Blocklist WebUI pref page
This commit is contained in:
parent
83c0f8a16e
commit
42b3edff64
@ -267,8 +267,7 @@ Deluge.ux.preferences.BlocklistPage = Ext.extend(Ext.Panel, {
|
|||||||
for (var i = 0; i < store.getCount(); i++) {
|
for (var i = 0; i < store.getCount(); i++) {
|
||||||
var record = store.getAt(i);
|
var record = store.getAt(i);
|
||||||
var ip = record.get('ip');
|
var ip = record.get('ip');
|
||||||
console.log(ip);
|
ipList.push(ip);
|
||||||
ipList.push(name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
config['whitelisted'] = ipList;
|
config['whitelisted'] = ipList;
|
||||||
@ -404,4 +403,5 @@ Deluge.plugins.BlocklistPlugin = Ext.extend(Deluge.Plugin, {
|
|||||||
this.prefsPage = deluge.preferences.addPage(new Deluge.ux.preferences.BlocklistPage());
|
this.prefsPage = deluge.preferences.addPage(new Deluge.ux.preferences.BlocklistPage());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Deluge.registerPlugin('Blocklist', Deluge.plugins.BlocklistPlugin);
|
Deluge.registerPlugin('Blocklist', Deluge.plugins.BlocklistPlugin);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user