2 <div class=
"toolbarTabs">
3 <menu id=
"preferencesTabs" class=
"tab-menu">
4 <li id=
"PrefBehaviorLink" class=
"selected">
5 <a><img alt=
"QBT_TR(Behavior)QBT_TR[CONTEXT=OptionsDialog]" src=
"images/preferences-desktop.svg" width=
"16" height=
"16">QBT_TR(Behavior)QBT_TR[CONTEXT=OptionsDialog]
</a>
7 <li id=
"PrefDownloadsLink">
8 <a><img alt=
"QBT_TR(Downloads)QBT_TR[CONTEXT=OptionsDialog]" src=
"images/download.svg" width=
"16" height=
"16">QBT_TR(Downloads)QBT_TR[CONTEXT=OptionsDialog]
</a>
10 <li id=
"PrefConnectionLink">
11 <a><img alt=
"QBT_TR(Connection)QBT_TR[CONTEXT=OptionsDialog]" src=
"images/network-connect.svg" width=
"16" height=
"16">QBT_TR(Connection)QBT_TR[CONTEXT=OptionsDialog]
</a>
13 <li id=
"PrefSpeedLink">
14 <a><img alt=
"QBT_TR(Speed)QBT_TR[CONTEXT=OptionsDialog]" src=
"images/slow_off.svg" width=
"16" height=
"16">QBT_TR(Speed)QBT_TR[CONTEXT=OptionsDialog]
</a>
16 <li id=
"PrefBittorrentLink">
17 <a><img alt=
"QBT_TR(BitTorrent)QBT_TR[CONTEXT=OptionsDialog]" src=
"images/preferences-bittorrent.svg" width=
"16" height=
"16">QBT_TR(BitTorrent)QBT_TR[CONTEXT=OptionsDialog]
</a>
20 <a><img alt=
"QBT_TR(RSS)QBT_TR[CONTEXT=OptionsDialog]" src=
"images/application-rss.svg" width=
"16" height=
"16">QBT_TR(RSS)QBT_TR[CONTEXT=OptionsDialog]
</a>
22 <li id=
"PrefWebUILink">
23 <a><img alt=
"QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]" src=
"images/preferences-webui.svg" width=
"16" height=
"16">QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]
</a>
25 <li id=
"PrefAdvancedLink">
26 <a><img alt=
"QBT_TR(Advanced)QBT_TR[CONTEXT=OptionsDialog]" src=
"images/preferences-advanced.svg" width=
"16" height=
"16">QBT_TR(Advanced)QBT_TR[CONTEXT=OptionsDialog]
</a>
29 <div class=
"clear"></div>
37 MochaUI
.initializeTabs("preferencesTabs");
39 $("PrefBehaviorLink").addEventListener("click", (e
) => {
40 $$(".PrefTab").addClass("invisible");
41 $("BehaviorTab").removeClass("invisible");
43 $("PrefDownloadsLink").addEventListener("click", (e
) => {
44 $$(".PrefTab").addClass("invisible");
45 $("DownloadsTab").removeClass("invisible");
47 $("PrefConnectionLink").addEventListener("click", (e
) => {
48 $$(".PrefTab").addClass("invisible");
49 $("ConnectionTab").removeClass("invisible");
51 $("PrefSpeedLink").addEventListener("click", (e
) => {
52 $$(".PrefTab").addClass("invisible");
53 $("SpeedTab").removeClass("invisible");
55 $("PrefBittorrentLink").addEventListener("click", (e
) => {
56 $$(".PrefTab").addClass("invisible");
57 $("BittorrentTab").removeClass("invisible");
59 $("PrefRSSLink").addEventListener("click", (e
) => {
60 $$(".PrefTab").addClass("invisible");
61 $("RSSTab").removeClass("invisible");
63 $("PrefWebUILink").addEventListener("click", (e
) => {
64 $$(".PrefTab").addClass("invisible");
65 $("WebUITab").removeClass("invisible");
67 $("PrefAdvancedLink").addEventListener("click", (e
) => {
68 $$(".PrefTab").addClass("invisible");
69 $("AdvancedTab").removeClass("invisible");