mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Use camelCase for a few WebUI vars
This commit is contained in:
parent
7b31868e3c
commit
e917c371d9
@ -29,25 +29,25 @@
|
|||||||
targets: '.categoriesFilterContextMenuTarget',
|
targets: '.categoriesFilterContextMenuTarget',
|
||||||
menu: 'categoriesFilterMenu',
|
menu: 'categoriesFilterMenu',
|
||||||
actions: {
|
actions: {
|
||||||
CreateCategory: function(element, ref) {
|
createCategory: function(element, ref) {
|
||||||
createCategoryFN();
|
createCategoryFN();
|
||||||
},
|
},
|
||||||
EditCategory: function(element, ref) {
|
editCategory: function(element, ref) {
|
||||||
editCategoryFN(element.id);
|
editCategoryFN(element.id);
|
||||||
},
|
},
|
||||||
DeleteCategory: function(element, ref) {
|
deleteCategory: function(element, ref) {
|
||||||
removeCategoryFN(element.id);
|
removeCategoryFN(element.id);
|
||||||
},
|
},
|
||||||
DeleteUnusedCategories: function(element, ref) {
|
deleteUnusedCategories: function(element, ref) {
|
||||||
deleteUnusedCategoriesFN();
|
deleteUnusedCategoriesFN();
|
||||||
},
|
},
|
||||||
StartTorrentsByCategory: function(element, ref) {
|
startTorrentsByCategory: function(element, ref) {
|
||||||
startTorrentsByCategoryFN(element.id);
|
startTorrentsByCategoryFN(element.id);
|
||||||
},
|
},
|
||||||
PauseTorrentsByCategory: function(element, ref) {
|
pauseTorrentsByCategory: function(element, ref) {
|
||||||
pauseTorrentsByCategoryFN(element.id);
|
pauseTorrentsByCategoryFN(element.id);
|
||||||
},
|
},
|
||||||
DeleteTorrentsByCategory: function(element, ref) {
|
deleteTorrentsByCategory: function(element, ref) {
|
||||||
deleteTorrentsByCategoryFN(element.id);
|
deleteTorrentsByCategoryFN(element.id);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -119,50 +119,50 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul id="torrentsTableMenu" class="contextMenu">
|
<ul id="torrentsTableMenu" class="contextMenu">
|
||||||
<li><a href="#Start"><img src="images/qbt-theme/media-playback-start.svg" alt="QBT_TR(Resume)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Resume)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#start"><img src="images/qbt-theme/media-playback-start.svg" alt="QBT_TR(Resume)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Resume)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li><a href="#Pause"><img src="images/qbt-theme/media-playback-pause.svg" alt="QBT_TR(Pause)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Pause)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#pause"><img src="images/qbt-theme/media-playback-pause.svg" alt="QBT_TR(Pause)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Pause)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li><a href="#ForceStart"><img src="images/qbt-theme/media-seek-forward.svg" alt="QBT_TR(Force Resume)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Force Resume)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#forceStart"><img src="images/qbt-theme/media-seek-forward.svg" alt="QBT_TR(Force Resume)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Force Resume)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li class="separator"><a href="#Delete"><img src="images/qbt-theme/list-remove.svg" alt="QBT_TR(Delete)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Delete)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li class="separator"><a href="#delete"><img src="images/qbt-theme/list-remove.svg" alt="QBT_TR(Delete)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Delete)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li class="separator">
|
<li class="separator">
|
||||||
<a href="#SetLocation"><img src="images/qbt-theme/inode-directory.svg" alt="QBT_TR(Set location...)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Set location...)QBT_TR[CONTEXT=TransferListWidget]</a>
|
<a href="#setLocation"><img src="images/qbt-theme/inode-directory.svg" alt="QBT_TR(Set location...)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Set location...)QBT_TR[CONTEXT=TransferListWidget]</a>
|
||||||
<a href="#Rename"><img src="images/qbt-theme/edit-rename.svg" alt="QBT_TR(Rename...)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Rename...)QBT_TR[CONTEXT=TransferListWidget]</a>
|
<a href="#rename"><img src="images/qbt-theme/edit-rename.svg" alt="QBT_TR(Rename...)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Rename...)QBT_TR[CONTEXT=TransferListWidget]</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="#Category" class="arrow-right"><img src="images/qbt-theme/view-categories.svg" alt="QBT_TR(Category)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Category)QBT_TR[CONTEXT=TransferListWidget]</a>
|
<a href="#Category" class="arrow-right"><img src="images/qbt-theme/view-categories.svg" alt="QBT_TR(Category)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Category)QBT_TR[CONTEXT=TransferListWidget]</a>
|
||||||
<ul id="contextCategoryList" class="scrollableMenu"></ul>
|
<ul id="contextCategoryList" class="scrollableMenu"></ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="#AutoTorrentManagement"><img src="images/qbt-theme/checked.svg" alt="QBT_TR(Automatic Torrent Management)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Automatic Torrent Management)QBT_TR[CONTEXT=TransferListWidget]</a>
|
<a href="#autoTorrentManagement"><img src="images/qbt-theme/checked.svg" alt="QBT_TR(Automatic Torrent Management)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Automatic Torrent Management)QBT_TR[CONTEXT=TransferListWidget]</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="separator"><a href="#DownloadLimit"><img src="images/qbt-theme/kt-set-max-download-speed.svg" alt="QBT_TR(Limit download rate...)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Limit download rate...)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li class="separator"><a href="#downloadLimit"><img src="images/qbt-theme/kt-set-max-download-speed.svg" alt="QBT_TR(Limit download rate...)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Limit download rate...)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li><a href="#UploadLimit"><img src="images/qbt-theme/kt-set-max-upload-speed.svg" alt="QBT_TR(Limit upload rate...)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Limit upload rate...)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#uploadLimit"><img src="images/qbt-theme/kt-set-max-upload-speed.svg" alt="QBT_TR(Limit upload rate...)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Limit upload rate...)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li><a href="#ShareRatio"><img src="images/skin/ratio.svg" alt="QBT_TR(Limit share ratio...)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Limit share ratio...)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#shareRatio"><img src="images/skin/ratio.svg" alt="QBT_TR(Limit share ratio...)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Limit share ratio...)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li><a href="#SuperSeeding"><img src="images/qbt-theme/checked.svg" alt="QBT_TR(Super seeding mode)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Super seeding mode)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#superSeeding"><img src="images/qbt-theme/checked.svg" alt="QBT_TR(Super seeding mode)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Super seeding mode)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li class="separator"><a href="#SequentialDownload"><img src="images/qbt-theme/checked.svg" alt="QBT_TR(Download in sequential order)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Download in sequential order)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li class="separator"><a href="#sequentialDownload"><img src="images/qbt-theme/checked.svg" alt="QBT_TR(Download in sequential order)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Download in sequential order)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li><a href="#FirstLastPiecePrio"><img src="images/qbt-theme/checked.svg" alt="QBT_TR(Download first and last pieces first)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Download first and last pieces first)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#firstLastPiecePrio"><img src="images/qbt-theme/checked.svg" alt="QBT_TR(Download first and last pieces first)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Download first and last pieces first)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li class="separator"><a href="#ForceRecheck"><img src="images/qbt-theme/document-edit-verify.svg" alt="QBT_TR(Force recheck)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Force recheck)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li class="separator"><a href="#forceRecheck"><img src="images/qbt-theme/document-edit-verify.svg" alt="QBT_TR(Force recheck)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Force recheck)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li><a href="#ForceReannounce"><img src="images/qbt-theme/document-edit-verify.svg" alt="QBT_TR(Force reannounce)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Force reannounce)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#forceReannounce"><img src="images/qbt-theme/document-edit-verify.svg" alt="QBT_TR(Force reannounce)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Force reannounce)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li id="queueingMenuItems" class="separator">
|
<li id="queueingMenuItems" class="separator">
|
||||||
<a href="#queue" class="arrow-right"><span style="display: inline-block; width:16px"></span> QBT_TR(Queue)QBT_TR[CONTEXT=TransferListWidget]</a>
|
<a href="#queue" class="arrow-right"><span style="display: inline-block; width:16px"></span> QBT_TR(Queue)QBT_TR[CONTEXT=TransferListWidget]</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#QueueTop"><img src="images/qbt-theme/go-top.svg" alt="QBT_TR(Move to top)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Move to top)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#queueTop"><img src="images/qbt-theme/go-top.svg" alt="QBT_TR(Move to top)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Move to top)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li><a href="#QueueUp"><img src="images/qbt-theme/go-up.svg" alt="QBT_TR(Move up)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Move up)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#queueUp"><img src="images/qbt-theme/go-up.svg" alt="QBT_TR(Move up)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Move up)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li><a href="#QueueDown"><img src="images/qbt-theme/go-down.svg" alt="QBT_TR(Move down)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Move down)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#queueDown"><img src="images/qbt-theme/go-down.svg" alt="QBT_TR(Move down)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Move down)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li><a href="#QueueBottom"><img src="images/qbt-theme/go-bottom.svg" alt="QBT_TR(Move to bottom)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Move to bottom)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#queueBottom"><img src="images/qbt-theme/go-bottom.svg" alt="QBT_TR(Move to bottom)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Move to bottom)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="separator"><a href="#" id="CopyName" class="copyToClipboard"><img src="images/qbt-theme/edit-copy.svg" alt="QBT_TR(Copy name)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Copy name)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li class="separator"><a href="#" id="copyName" class="copyToClipboard"><img src="images/qbt-theme/edit-copy.svg" alt="QBT_TR(Copy name)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Copy name)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li><a href="#" id="CopyHash" class="copyToClipboard"><img src="images/qbt-theme/edit-copy.svg" alt="QBT_TR(Copy hash)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Copy hash)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#" id="copyHash" class="copyToClipboard"><img src="images/qbt-theme/edit-copy.svg" alt="QBT_TR(Copy hash)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Copy hash)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
<li><a href="#" id="CopyMagnetLink" class="copyToClipboard"><img src="images/qbt-theme/kt-magnet.svg" alt="QBT_TR(Copy magnet link)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Copy magnet link)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
<li><a href="#" id="copyMagnetLink" class="copyToClipboard"><img src="images/qbt-theme/kt-magnet.svg" alt="QBT_TR(Copy magnet link)QBT_TR[CONTEXT=TransferListWidget]"/> QBT_TR(Copy magnet link)QBT_TR[CONTEXT=TransferListWidget]</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul id="categoriesFilterMenu" class="contextMenu">
|
<ul id="categoriesFilterMenu" class="contextMenu">
|
||||||
<li><a href="#CreateCategory"><img src="images/qbt-theme/list-add.svg" alt="QBT_TR(Add category...)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Add category...)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
<li><a href="#createCategory"><img src="images/qbt-theme/list-add.svg" alt="QBT_TR(Add category...)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Add category...)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
||||||
<li><a href="#EditCategory"><img src="images/qbt-theme/document-edit.svg" alt="QBT_TR(Edit category...)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Edit category...)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
<li><a href="#editCategory"><img src="images/qbt-theme/document-edit.svg" alt="QBT_TR(Edit category...)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Edit category...)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
||||||
<li><a href="#DeleteCategory"><img src="images/qbt-theme/list-remove.svg" alt="QBT_TR(Remove category)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Remove category)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
<li><a href="#deleteCategory"><img src="images/qbt-theme/list-remove.svg" alt="QBT_TR(Remove category)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Remove category)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
||||||
<li><a href="#DeleteUnusedCategories"><img src="images/qbt-theme/list-remove.svg" alt="QBT_TR(Remove unused categories)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Remove unused categories)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
<li><a href="#deleteUnusedCategories"><img src="images/qbt-theme/list-remove.svg" alt="QBT_TR(Remove unused categories)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Remove unused categories)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
||||||
<li class="separator"><a href="#StartTorrentsByCategory"><img src="images/qbt-theme/media-playback-start.svg" alt="QBT_TR(Resume torrents)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Resume torrents)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
<li class="separator"><a href="#startTorrentsByCategory"><img src="images/qbt-theme/media-playback-start.svg" alt="QBT_TR(Resume torrents)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Resume torrents)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
||||||
<li><a href="#PauseTorrentsByCategory"><img src="images/qbt-theme/media-playback-pause.svg" alt="QBT_TR(Pause torrents)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Pause torrents)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
<li><a href="#pauseTorrentsByCategory"><img src="images/qbt-theme/media-playback-pause.svg" alt="QBT_TR(Pause torrents)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Pause torrents)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
||||||
<li><a href="#DeleteTorrentsByCategory"><img src="images/qbt-theme/edit-delete.svg" alt="QBT_TR(Delete torrents)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Delete torrents)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
<li><a href="#deleteTorrentsByCategory"><img src="images/qbt-theme/edit-delete.svg" alt="QBT_TR(Delete torrents)QBT_TR[CONTEXT=CategoryFilterWidget]"/> QBT_TR(Delete torrents)QBT_TR[CONTEXT=CategoryFilterWidget]</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul id="torrentTrackersMenu" class="contextMenu">
|
<ul id="torrentTrackersMenu" class="contextMenu">
|
||||||
<li><a href="#AddTracker"><img src="images/qbt-theme/list-add.svg" alt="QBT_TR(Add a new tracker...)QBT_TR[CONTEXT=TrackerListWidget]"/> QBT_TR(Add a new tracker...)QBT_TR[CONTEXT=TrackerListWidget]</a></li>
|
<li><a href="#AddTracker"><img src="images/qbt-theme/list-add.svg" alt="QBT_TR(Add a new tracker...)QBT_TR[CONTEXT=TrackerListWidget]"/> QBT_TR(Add a new tracker...)QBT_TR[CONTEXT=TrackerListWidget]</a></li>
|
||||||
|
@ -854,11 +854,11 @@ function setupCopyEventHandler() {
|
|||||||
clipboardEvent = new ClipboardJS('.copyToClipboard', {
|
clipboardEvent = new ClipboardJS('.copyToClipboard', {
|
||||||
text: function(trigger) {
|
text: function(trigger) {
|
||||||
switch (trigger.id) {
|
switch (trigger.id) {
|
||||||
case "CopyName":
|
case "copyName":
|
||||||
return copyNameFN();
|
return copyNameFN();
|
||||||
case "CopyMagnetLink":
|
case "copyMagnetLink":
|
||||||
return copyMagnetLinkFN();
|
return copyMagnetLinkFN();
|
||||||
case "CopyHash":
|
case "copyHash":
|
||||||
return copyHashFN();
|
return copyHashFN();
|
||||||
case "copyDescriptionPageUrl":
|
case "copyDescriptionPageUrl":
|
||||||
return copySearchTorrentUrl();
|
return copySearchTorrentUrl();
|
||||||
|
@ -334,53 +334,53 @@ var TorrentsTableContextMenu = new Class({
|
|||||||
show_f_l_piece_prio = false;
|
show_f_l_piece_prio = false;
|
||||||
|
|
||||||
if (all_are_downloaded) {
|
if (all_are_downloaded) {
|
||||||
this.hideItem('DownloadLimit');
|
this.hideItem('downloadLimit');
|
||||||
this.menu.getElement('a[href$=UploadLimit]').parentNode.addClass('separator');
|
this.menu.getElement('a[href$=uploadLimit]').parentNode.addClass('separator');
|
||||||
this.hideItem('SequentialDownload');
|
this.hideItem('sequentialDownload');
|
||||||
this.hideItem('FirstLastPiecePrio');
|
this.hideItem('firstLastPiecePrio');
|
||||||
this.showItem('SuperSeeding');
|
this.showItem('superSeeding');
|
||||||
this.setItemChecked('SuperSeeding', all_are_super_seeding);
|
this.setItemChecked('superSeeding', all_are_super_seeding);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!show_seq_dl && show_f_l_piece_prio)
|
if (!show_seq_dl && show_f_l_piece_prio)
|
||||||
this.menu.getElement('a[href$=FirstLastPiecePrio]').parentNode.addClass('separator');
|
this.menu.getElement('a[href$=firstLastPiecePrio]').parentNode.addClass('separator');
|
||||||
else
|
else
|
||||||
this.menu.getElement('a[href$=FirstLastPiecePrio]').parentNode.removeClass('separator');
|
this.menu.getElement('a[href$=firstLastPiecePrio]').parentNode.removeClass('separator');
|
||||||
|
|
||||||
if (show_seq_dl)
|
if (show_seq_dl)
|
||||||
this.showItem('SequentialDownload');
|
this.showItem('sequentialDownload');
|
||||||
else
|
else
|
||||||
this.hideItem('SequentialDownload');
|
this.hideItem('sequentialDownload');
|
||||||
|
|
||||||
if (show_f_l_piece_prio)
|
if (show_f_l_piece_prio)
|
||||||
this.showItem('FirstLastPiecePrio');
|
this.showItem('firstLastPiecePrio');
|
||||||
else
|
else
|
||||||
this.hideItem('FirstLastPiecePrio');
|
this.hideItem('firstLastPiecePrio');
|
||||||
|
|
||||||
this.setItemChecked('SequentialDownload', all_are_seq_dl);
|
this.setItemChecked('sequentialDownload', all_are_seq_dl);
|
||||||
this.setItemChecked('FirstLastPiecePrio', all_are_f_l_piece_prio);
|
this.setItemChecked('firstLastPiecePrio', all_are_f_l_piece_prio);
|
||||||
|
|
||||||
this.showItem('DownloadLimit');
|
this.showItem('downloadLimit');
|
||||||
this.menu.getElement('a[href$=UploadLimit]').parentNode.removeClass('separator');
|
this.menu.getElement('a[href$=uploadLimit]').parentNode.removeClass('separator');
|
||||||
this.hideItem('SuperSeeding');
|
this.hideItem('superSeeding');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showItem('Start');
|
this.showItem('start');
|
||||||
this.showItem('Pause');
|
this.showItem('pause');
|
||||||
this.showItem('ForceStart');
|
this.showItem('forceStart');
|
||||||
if (all_are_paused)
|
if (all_are_paused)
|
||||||
this.hideItem('Pause');
|
this.hideItem('pause');
|
||||||
else if (all_are_force_start)
|
else if (all_are_force_start)
|
||||||
this.hideItem('ForceStart');
|
this.hideItem('forceStart');
|
||||||
else if (!there_are_paused && !there_are_force_start)
|
else if (!there_are_paused && !there_are_force_start)
|
||||||
this.hideItem('Start');
|
this.hideItem('start');
|
||||||
|
|
||||||
if (!all_are_auto_tmm && there_are_auto_tmm) {
|
if (!all_are_auto_tmm && there_are_auto_tmm) {
|
||||||
this.hideItem('AutoTorrentManagement');
|
this.hideItem('autoTorrentManagement');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.showItem('AutoTorrentManagement');
|
this.showItem('autoTorrentManagement');
|
||||||
this.setItemChecked('AutoTorrentManagement', all_are_auto_tmm);
|
this.setItemChecked('autoTorrentManagement', all_are_auto_tmm);
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -421,12 +421,12 @@ var CategoriesFilterContextMenu = new Class({
|
|||||||
updateMenuItems: function() {
|
updateMenuItems: function() {
|
||||||
var id = this.options.element.id;
|
var id = this.options.element.id;
|
||||||
if ((id != CATEGORIES_ALL) && (id != CATEGORIES_UNCATEGORIZED)) {
|
if ((id != CATEGORIES_ALL) && (id != CATEGORIES_UNCATEGORIZED)) {
|
||||||
this.showItem('EditCategory');
|
this.showItem('editCategory');
|
||||||
this.showItem('DeleteCategory');
|
this.showItem('deleteCategory');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.hideItem('EditCategory');
|
this.hideItem('editCategory');
|
||||||
this.hideItem('DeleteCategory');
|
this.hideItem('deleteCategory');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -23,69 +23,69 @@
|
|||||||
targets: '.torrentsTableContextMenuTarget',
|
targets: '.torrentsTableContextMenuTarget',
|
||||||
menu: 'torrentsTableMenu',
|
menu: 'torrentsTableMenu',
|
||||||
actions: {
|
actions: {
|
||||||
Start: function(element, ref) {
|
start: function(element, ref) {
|
||||||
startFN();
|
startFN();
|
||||||
},
|
},
|
||||||
Pause: function(element, ref) {
|
pause: function(element, ref) {
|
||||||
pauseFN();
|
pauseFN();
|
||||||
},
|
},
|
||||||
ForceStart: function(element, ref) {
|
forceStart: function(element, ref) {
|
||||||
setForceStartFN();
|
setForceStartFN();
|
||||||
},
|
},
|
||||||
|
|
||||||
Delete: function(element, ref) {
|
delete: function(element, ref) {
|
||||||
deleteFN();
|
deleteFN();
|
||||||
},
|
},
|
||||||
|
|
||||||
SetLocation: function(element, ref) {
|
setLocation: function(element, ref) {
|
||||||
setLocationFN();
|
setLocationFN();
|
||||||
},
|
},
|
||||||
|
|
||||||
Rename: function(element, ref) {
|
rename: function(element, ref) {
|
||||||
renameFN();
|
renameFN();
|
||||||
},
|
},
|
||||||
QueueTop: function(element, ref) {
|
queueTop: function(element, ref) {
|
||||||
setQueuePositionFN('topPrio');
|
setQueuePositionFN('topPrio');
|
||||||
},
|
},
|
||||||
QueueUp: function(element, ref) {
|
queueUp: function(element, ref) {
|
||||||
setQueuePositionFN('increasePrio');
|
setQueuePositionFN('increasePrio');
|
||||||
},
|
},
|
||||||
QueueDown: function(element, ref) {
|
queueDown: function(element, ref) {
|
||||||
setQueuePositionFN('decreasePrio');
|
setQueuePositionFN('decreasePrio');
|
||||||
},
|
},
|
||||||
QueueBottom: function(element, ref) {
|
queueBottom: function(element, ref) {
|
||||||
setQueuePositionFN('bottomPrio');
|
setQueuePositionFN('bottomPrio');
|
||||||
},
|
},
|
||||||
|
|
||||||
DownloadLimit: function(element, ref) {
|
downloadLimit: function(element, ref) {
|
||||||
downloadLimitFN();
|
downloadLimitFN();
|
||||||
},
|
},
|
||||||
UploadLimit: function(element, ref) {
|
uploadLimit: function(element, ref) {
|
||||||
uploadLimitFN();
|
uploadLimitFN();
|
||||||
},
|
},
|
||||||
ShareRatio: function(element, ref) {
|
shareRatio: function(element, ref) {
|
||||||
shareRatioFN();
|
shareRatioFN();
|
||||||
},
|
},
|
||||||
|
|
||||||
SequentialDownload: function(element, ref) {
|
sequentialDownload: function(element, ref) {
|
||||||
toggleSequentialDownloadFN();
|
toggleSequentialDownloadFN();
|
||||||
},
|
},
|
||||||
FirstLastPiecePrio: function(element, ref) {
|
firstLastPiecePrio: function(element, ref) {
|
||||||
toggleFirstLastPiecePrioFN();
|
toggleFirstLastPiecePrioFN();
|
||||||
},
|
},
|
||||||
|
|
||||||
AutoTorrentManagement: function(element, ref) {
|
autoTorrentManagement: function(element, ref) {
|
||||||
autoTorrentManagementFN();
|
autoTorrentManagementFN();
|
||||||
},
|
},
|
||||||
ForceRecheck: function(element, ref) {
|
forceRecheck: function(element, ref) {
|
||||||
recheckFN();
|
recheckFN();
|
||||||
},
|
},
|
||||||
ForceReannounce: function(element, ref) {
|
forceReannounce: function(element, ref) {
|
||||||
reannounceFN();
|
reannounceFN();
|
||||||
},
|
},
|
||||||
|
|
||||||
SuperSeeding: function(element, ref) {
|
superSeeding: function(element, ref) {
|
||||||
setSuperSeedingFN(!ref.getItemChecked('SuperSeeding'));
|
setSuperSeedingFN(!ref.getItemChecked('superSeeding'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
offsets: {
|
offsets: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user