possible fix for safari
This commit is contained in:
@ -55,10 +55,14 @@
|
|||||||
var xhttp = new XMLHttpRequest();
|
var xhttp = new XMLHttpRequest();
|
||||||
xhttp.onreadystatechange = function () {
|
xhttp.onreadystatechange = function () {
|
||||||
if (this.readyState === 4 && this.status === 200) {
|
if (this.readyState === 4 && this.status === 200) {
|
||||||
|
if (navigator.userAgent.toLowerCase().indexOf('safari/') > -1){
|
||||||
|
link.attr("href", this.responseText);
|
||||||
|
link.show();
|
||||||
|
}else{
|
||||||
window.open(this.responseText);
|
window.open(this.responseText);
|
||||||
$('#modal_recipe').modal('hide');
|
$('#modal_recipe').modal('hide');
|
||||||
//link.attr("href", this.responseText);
|
}
|
||||||
//link.show();
|
|
||||||
$('#div_loader').hide();
|
$('#div_loader').hide();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user