diff --git a/src/tr-web-control/template/dialog-system-config.html b/src/tr-web-control/template/dialog-system-config.html
index cfcc5c7..bf41e48 100644
--- a/src/tr-web-control/template/dialog-system-config.html
+++ b/src/tr-web-control/template/dialog-system-config.html
@@ -427,11 +427,11 @@
-
-
@@ -599,12 +599,13 @@
// Set content
thisDialog.find('#download-dir').val(system.downloadDir);
+ $('').text(system.downloadDir).val(system.downloadDir).attr('selected', true).appendTo(thisDialog.find('#download-dir'));
$.each(transmission.downloadDirs, function (i, item) {
- $('').text(item).val(item).attr('selected', (item == system.downloadDir ? true : false)).appendTo(thisDialog.find('#download-dir'));
+ if (item === system.downloadDir){
+ return
+ }
+ $('').text(item).val(item).appendTo(thisDialog.find('#download-dir'));
});
- if (transmission.downloadDirs.length == 0) {
- $('').text(system.downloadDir).val(system.downloadDir).attr('selected', true).appendTo(thisDialog.find('#download-dir'));
- }
thisDialog.find('#download-dir').combobox();
thisDialog.find('#config-dir').val(system.serverConfig['config-dir']);
@@ -935,7 +936,7 @@
alert(system.expandIpInfoUrl(this.value, '8.8.8.8'));
}
}});
-
+
// 恢复界面默认设置
$('#restore-default-settings', thisDialog).click(function () {