mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 08:48:07 -06:00
WebUI: access attribute/property natively
It is now clearer to see what property is being accessed. Previously mootools library would re-map attribute/property to another. PR #21007.
This commit is contained in:
@@ -51,8 +51,8 @@ window.qBittorrent.Download = (function() {
|
||||
|
||||
const category = data[i];
|
||||
const option = new Element("option");
|
||||
option.set("value", category.name);
|
||||
option.set("html", category.name);
|
||||
option.value = category.name;
|
||||
option.textContent = category.name;
|
||||
$("categorySelect").appendChild(option);
|
||||
}
|
||||
}
|
||||
@@ -64,7 +64,7 @@ window.qBittorrent.Download = (function() {
|
||||
const pref = window.parent.qBittorrent.Cache.preferences.get();
|
||||
|
||||
defaultSavePath = pref.save_path;
|
||||
$("savepath").setProperty("value", defaultSavePath);
|
||||
$("savepath").value = defaultSavePath;
|
||||
$("startTorrent").checked = !pref.add_stopped_enabled;
|
||||
$("addToTopOfQueue").checked = pref.add_to_top_of_queue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user