fix: Fetch PGP key button goes into endless loading if no key was found

pull/2412/head
iglocska 2017-08-18 11:30:53 +02:00
parent 702da58e3b
commit d0b4e8eb90
1 changed files with 5 additions and 0 deletions

View File

@ -1239,6 +1239,11 @@ function simplePopup(url) {
$("#popover_form").html(data);
openPopup("#popover_form");
},
error:function() {
$(".loading").hide();
$("#gray_out").fadeOut();
showMessage('fail', 'Could not fetch the given PGP key.');
},
url: url,
});
}