diff --git a/deluge/ui/webui/templates/ajax/static/js/deluge.widgets.js b/deluge/ui/webui/templates/ajax/static/js/deluge.widgets.js index 4fcdf2362..dd36d2bfa 100644 --- a/deluge/ui/webui/templates/ajax/static/js/deluge.widgets.js +++ b/deluge/ui/webui/templates/ajax/static/js/deluge.widgets.js @@ -928,7 +928,7 @@ Deluge.Widgets.PreferencesWindow = new Class({ this.categories.each(function(category) { config = $merge(config, category.getConfig()); }); - if ($defined(config['end_listen_port']) || $definied(config['start_listen_port'])) { + 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]); delete config['end_listen_port'];