small hotfix, you can not click "getfile" button anymore, without a value in the input field. But its still not validated, if the value is a valid filehash
This commit is contained in:
parent
03a2061316
commit
1006f6ac3e
@ -22,8 +22,13 @@ function init_start(){
|
|||||||
|
|
||||||
//download
|
//download
|
||||||
$('#btn_load_infohash').click(function(e){
|
$('#btn_load_infohash').click(function(e){
|
||||||
e.preventDefault();
|
if ($('#input_load_infohash').val()){
|
||||||
slingit_download(client,$('#input_load_infohash').val());});
|
e.preventDefault();
|
||||||
|
slingit_download(client,$('#input_load_infohash').val());
|
||||||
|
} else {
|
||||||
|
$('#input_load_infohash').focus();
|
||||||
|
}});
|
||||||
|
|
||||||
|
|
||||||
//start download if hash provided
|
//start download if hash provided
|
||||||
if($('#input_load_infohash').val() !== ''){
|
if($('#input_load_infohash').val() !== ''){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user