mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-12 14:13:38 +00:00
ee458bd211
Show root dirs can not be set from general config menu. Mass editing shows now has the ability to delete root dirs as well as edit them. Daily search no longer is restricted to just 1 week of results for searching from which now allows for replacing lower quality downloads with higher quality ones if available. RSS Cache is updated for each provider on demand now when performing manual, failed, backlog, or daily searches.
31 lines
No EOL
1,007 B
JavaScript
31 lines
No EOL
1,007 B
JavaScript
$(document).ready(function(){
|
|
|
|
function find_dir_index(which){
|
|
var dir_parts = which.split('_');
|
|
return dir_parts[dir_parts.length-1];
|
|
}
|
|
|
|
function edit_root_dir(path, options){
|
|
$('#new_root_dir_'+options.which_id).val(path);
|
|
$('#new_root_dir_'+options.which_id).change();
|
|
}
|
|
|
|
$('.new_root_dir').change(function(){
|
|
var cur_index = find_dir_index($(this).attr('id'));
|
|
$('#display_new_root_dir_'+cur_index).html('<b>'+$(this).val()+'</b>');
|
|
});
|
|
|
|
$('.edit_root_dir').click(function(){
|
|
var cur_id = find_dir_index($(this).attr('id'));
|
|
var initial_dir = $("#new_root_dir_"+cur_id).val();
|
|
$(this).nFileBrowser(edit_root_dir, {initialDir: initial_dir, which_id: cur_id});
|
|
|
|
});
|
|
|
|
$('.delete_root_dir').click(function(){
|
|
var cur_id = find_dir_index($(this).attr('id'));
|
|
|
|
$('#new_root_dir_'+cur_id).val(null);
|
|
$('#display_new_root_dir_'+cur_id).html('<b>DELETED</b>');
|
|
});
|
|
}); |