mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
tabs to spaces
This commit is contained in:
parent
88db73e244
commit
e4840d6b37
1 changed files with 13 additions and 13 deletions
|
@ -330,9 +330,9 @@ Deluge.ux.LabelOptionsWindow = Ext.extend(Ext.Window, {
|
||||||
|
|
||||||
onOkClick: function() {
|
onOkClick: function() {
|
||||||
var values = this.form.getForm().getFieldValues();
|
var values = this.form.getForm().getFieldValues();
|
||||||
if (values['auto_add_trackers']) {
|
if (values['auto_add_trackers']) {
|
||||||
values['auto_add_trackers'] = values['auto_add_trackers'].split('\n');
|
values['auto_add_trackers'] = values['auto_add_trackers'].split('\n');
|
||||||
}
|
}
|
||||||
deluge.client.label.set_options(this.label, values);
|
deluge.client.label.set_options(this.label, values);
|
||||||
this.hide();
|
this.hide();
|
||||||
},
|
},
|
||||||
|
@ -388,14 +388,14 @@ Deluge.plugins.LabelPlugin = Ext.extend(Deluge.Plugin, {
|
||||||
},
|
},
|
||||||
|
|
||||||
updateTorrentMenu: function(states) {
|
updateTorrentMenu: function(states) {
|
||||||
this.torrentMenu.removeAll(true);
|
this.torrentMenu.removeAll(true);
|
||||||
this.torrentMenu.addMenuItem({
|
this.torrentMenu.addMenuItem({
|
||||||
text: _('No Label'),
|
text: _('No Label'),
|
||||||
label: '',
|
label: '',
|
||||||
handler: this.onTorrentMenuClick,
|
handler: this.onTorrentMenuClick,
|
||||||
scope: this
|
scope: this
|
||||||
});
|
});
|
||||||
for (var state in states) {
|
for (var state in states) {
|
||||||
if (!state || state == 'All' ) continue;
|
if (!state || state == 'All' ) continue;
|
||||||
this.torrentMenu.addMenuItem({
|
this.torrentMenu.addMenuItem({
|
||||||
text: state,
|
text: state,
|
||||||
|
@ -471,8 +471,8 @@ Deluge.plugins.LabelPlugin = Ext.extend(Deluge.Plugin, {
|
||||||
var statesArray = [];
|
var statesArray = [];
|
||||||
|
|
||||||
for (state in states) {
|
for (state in states) {
|
||||||
if (!state || state == 'All') continue;
|
if (!state || state == 'All') continue;
|
||||||
statesArray.push(state);
|
statesArray.push(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
statesArray.push(label.toLowerCase());
|
statesArray.push(label.toLowerCase());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue