From 5248501154f1a62d33832b8a8c41a873a696eefc Mon Sep 17 00:00:00 2001
From: Xuefer <xuefer@gmail.com>
Date: Fri, 2 Aug 2024 14:11:24 +0800
Subject: [PATCH] [WebUI] allow autocomplete download folder
Signed-off-by: Xuefer <xuefer@gmail.com>
diff --git a/deluge/ui/web/js/deluge-all/MoveStorage.js b/deluge/ui/web/js/deluge-all/MoveStorage.js
index 9ba638ac6..532d4a986 100644
|
a
|
b
|
Deluge.MoveStorage = Ext.extend(Ext.Window, {
|
| 48 | 48 | fieldLabel: _('Download Folder'), |
| 49 | 49 | name: 'location', |
| 50 | 50 | width: 240, |
| | 51 | listeners: { |
| | 52 | afterrender: function(cmp){ |
| | 53 | cmp.el.set({ |
| | 54 | autocomplete: 'on' |
| | 55 | }); |
| | 56 | } |
| | 57 | }, |
| 51 | 58 | }); |
| 52 | 59 | //this.form.add({ |
| 53 | 60 | // xtype: 'button', |
diff --git a/deluge/ui/web/js/deluge-all/add/OptionsTab.js b/deluge/ui/web/js/deluge-all/add/OptionsTab.js
index 73a8a5c28..9ac218db5 100644
|
a
|
b
|
Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
| 43 | 43 | name: 'download_location', |
| 44 | 44 | anchor: '95%', |
| 45 | 45 | labelSeparator: '', |
| | 46 | listeners: { |
| | 47 | afterrender: function(cmp){ |
| | 48 | cmp.el.set({ |
| | 49 | autocomplete: 'on' |
| | 50 | }); |
| | 51 | } |
| | 52 | }, |
| 46 | 53 | }) |
| 47 | 54 | ); |
| 48 | 55 | var fieldset = this.add({ |
| … |
… |
Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
| 59 | 66 | fieldLabel: '', |
| 60 | 67 | name: 'move_completed_path', |
| 61 | 68 | anchor: '98%', |
| | 69 | listeners: { |
| | 70 | afterrender: function(cmp){ |
| | 71 | cmp.el.set({ |
| | 72 | autocomplete: 'on' |
| | 73 | }); |
| | 74 | } |
| | 75 | }, |
| 62 | 76 | }); |
| 63 | 77 | this.optionsManager.bind('move_completed', field.toggle); |
| 64 | 78 | this.optionsManager.bind('move_completed_path', field.input); |