diff --git a/deluge/ui/webui/templates/ajax/render/html/preferences_bandwidth.html b/deluge/ui/webui/templates/ajax/render/html/preferences_bandwidth.html index a333d2d89..8e9065f04 100644 --- a/deluge/ui/webui/templates/ajax/render/html/preferences_bandwidth.html +++ b/deluge/ui/webui/templates/ajax/render/html/preferences_bandwidth.html @@ -1,16 +1,51 @@ -
diff --git a/deluge/ui/webui/templates/ajax/render/html/preferences_network.html b/deluge/ui/webui/templates/ajax/render/html/preferences_network.html index 9777c61a6..2fee6fea0 100644 --- a/deluge/ui/webui/templates/ajax/render/html/preferences_network.html +++ b/deluge/ui/webui/templates/ajax/render/html/preferences_network.html @@ -1,40 +1,94 @@ diff --git a/deluge/ui/webui/templates/ajax/static/js/deluge.js b/deluge/ui/webui/templates/ajax/static/js/deluge.js index a85a86f80..dd2f5d28f 100644 --- a/deluge/ui/webui/templates/ajax/static/js/deluge.js +++ b/deluge/ui/webui/templates/ajax/static/js/deluge.js @@ -929,6 +929,7 @@ Deluge.Widgets.PreferencesWindow = new Class({ this.categories.each(function(category) { config = $merge(config, category.getConfig()); }); + if ($defined(config['end_listen_port']) || $defined(config['start_listen_port'])) { var startport = $pick(config['start_listen_port'], this.config['listen_ports'][0]); var endport = $pick(config['end_listen_port'], this.config['listen_ports'][1]); @@ -936,6 +937,15 @@ Deluge.Widgets.PreferencesWindow = new Class({ delete config['start_listen_port']; config['listen_ports'] = [startport, endport]; } + + if ($defined(config['end_outgoing_port']) || $defined(config['start_outgoing_port'])) { + var startport = $pick(config['start_outgoing_port'], this.config['outgoing_ports'][0]); + var endport = $pick(config['end_outgoing_port'], this.config['outgoing_ports'][1]); + delete config['end_outgoing_port']; + delete config['start_outgoing_port']; + config['outgoing_ports'] = [startport, endport]; + } + Deluge.Client.set_config(config, { onSuccess: function(e) { this.hide(); @@ -952,6 +962,9 @@ Deluge.Widgets.PreferencesWindow = new Class({ // in order to not have to modify the generic preferences class. this.config['start_listen_port'] = this.config['listen_ports'][0]; this.config['end_listen_port'] = this.config['listen_ports'][1]; + + this.config['start_outgoing_port'] = this.config['outgoing_ports'][0]; + this.config['end_outgoing_port'] = this.config['outgoing_ports'][1]; // Iterate through the pages and set the fields this.categories.each(function(category) { diff --git a/deluge/ui/webui/templates/ajax/static/themes/classic/style.css b/deluge/ui/webui/templates/ajax/static/themes/classic/style.css index 381ae046f..20f1d86d9 100644 --- a/deluge/ui/webui/templates/ajax/static/themes/classic/style.css +++ b/deluge/ui/webui/templates/ajax/static/themes/classic/style.css @@ -282,6 +282,22 @@ form br { text-decoration: underline; } +#preferences #bandwidth_preferences label { + width: 200px; +} + +#preferences #encryption label { + width: 70px; +} + +#preferences #encryption label.fluid { + width: auto; +} + +#preferences #encryption select { + width: 70px; +} + .deluge-prefs-active { font-weight: bold; } @@ -295,3 +311,7 @@ label.fluid { width: auto; margin-right: 30px; } + +.deluge-prefs-page { + overflow: auto; +} diff --git a/deluge/ui/webui/templates/ajax/template_style.css b/deluge/ui/webui/templates/ajax/template_style.css index 5a341aaea..3a0c17287 100644 --- a/deluge/ui/webui/templates/ajax/template_style.css +++ b/deluge/ui/webui/templates/ajax/template_style.css @@ -133,13 +133,17 @@ html, body { .mooui-window-content #preferences .categories { float: left; - width: 130px; + width: 100px; padding-left: 10px; } +.mooui-window-content #preferences .pref_pages h3 { + margin-bottom: 5px; +} + .mooui-window-content #preferences .pref_pages { float: left; - width: 350px; + width: 380px; } .mooui-window-content #preferences .categories ul {