renamed navbar controls
This commit is contained in:
parent
a3c98a47ae
commit
c58cea1174
12
index.html
12
index.html
|
@ -413,8 +413,7 @@
|
|||
<li class="active"><a href="#">All Downloads</a></li>
|
||||
<li class="dropdown" id="add_download">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#add_download">
|
||||
Add Download
|
||||
<b class="caret"></b>
|
||||
Add <b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a id="newDownload" href="#">Add Download url</a></li>
|
||||
|
@ -424,13 +423,14 @@
|
|||
</li>
|
||||
<li class="dropdown" id="stop_downloads">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#stop_downloads">
|
||||
Stop Downloads
|
||||
Manage
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#" onclick="force_pause_all()"><i class="icon-pause"></i> Pause All downloads</a></li>
|
||||
<li><a href="#" onclick="force_remove_all()"><i class="icon-remove"></i> Remove All downloads</a></li>
|
||||
<li><a href="#" onclick="force_purge_all()"><i class="icon-fire"></i> Purge All downloads</a></li>
|
||||
<li><a href="#" onclick="force_pause_all()"><i class="icon-pause"></i> Pause All</a></li>
|
||||
<li><a href="#" onclick="resume_paused()"><i class="icon-play"></i> Resume Paused</a></li>
|
||||
<li><a href="#" onclick="purge_all()"><i class="icon-remove"></i> Purge Completed</a></li>
|
||||
<li><a href="#" onclick="force_remove_all()"><i class="icon-fire"></i> Remove All downloads</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
31
js/script.js
31
js/script.js
|
@ -1007,7 +1007,7 @@ function force_pause_all() {
|
|||
});
|
||||
}
|
||||
|
||||
function force_remove_all(cb) {
|
||||
function force_remove_all() {
|
||||
var remove_params = [];
|
||||
var func = function(downs) {
|
||||
for(var i = 0; i < downs.length; i++) {
|
||||
|
@ -1019,37 +1019,26 @@ function force_remove_all(cb) {
|
|||
}
|
||||
func(d_files.active);
|
||||
func(d_files.waiting);
|
||||
|
||||
aria_syscall({
|
||||
func: 'system.multicall',
|
||||
params:[remove_params],
|
||||
success: update_ui
|
||||
success: purge_all
|
||||
}, true);
|
||||
|
||||
}
|
||||
|
||||
function force_purge_all() {
|
||||
var remove_params = [];
|
||||
var func = function(downs) {
|
||||
for(var i = 0; i < downs.length; i++) {
|
||||
remove_params.push({
|
||||
methodName: 'aria2.remove',
|
||||
params: [downs[i].gid]
|
||||
});
|
||||
}
|
||||
}
|
||||
func(d_files.active);
|
||||
func(d_files.waiting);
|
||||
|
||||
aria_syscall({
|
||||
func: 'system.multicall',
|
||||
params:[remove_params],
|
||||
success: function() {
|
||||
function purge_all() {
|
||||
aria_syscall({
|
||||
func: "purgeDownloadResult",
|
||||
success: update_ui
|
||||
});
|
||||
}
|
||||
}, true);
|
||||
|
||||
function resume_paused() {
|
||||
aria_syscall({
|
||||
func: "unpauseAll",
|
||||
success: update_ui
|
||||
});
|
||||
}
|
||||
|
||||
function add_torrent() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user