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:
messerbill 2015-04-17 00:31:14 +02:00
parent 03a2061316
commit 1006f6ac3e

View File

@ -22,8 +22,13 @@ function init_start(){
//download
$('#btn_load_infohash').click(function(e){
if ($('#input_load_infohash').val()){
e.preventDefault();
slingit_download(client,$('#input_load_infohash').val());});
slingit_download(client,$('#input_load_infohash').val());
} else {
$('#input_load_infohash').focus();
}});
//start download if hash provided
if($('#input_load_infohash').val() !== ''){