mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
Laravel Vapor - Fix inconsistency of download triggers which suppose to open in a new tab instead of current
This commit is contained in:
@@ -41,7 +41,8 @@
|
||||
successHandler(response) {
|
||||
if(window.LARAVEL_VAPOR_ENABLED){
|
||||
if (response.src) {
|
||||
window.location.href = response.src;
|
||||
// window.location.href = response.src;
|
||||
window.open(response.src, '_blank');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+2
-1
@@ -135,7 +135,8 @@
|
||||
response.json().then(response => {
|
||||
if(!success){return;}
|
||||
if (response.src) {
|
||||
window.location.href = response.src;
|
||||
// window.location.href = response.src;
|
||||
window.open(response.src, '_blank');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+2
-1
@@ -139,7 +139,8 @@
|
||||
response.json().then(response => {
|
||||
if(!success){return;}
|
||||
if (response.src) {
|
||||
window.location.href = response.src;
|
||||
// window.location.href = response.src;
|
||||
window.open(response.src, '_blank');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+4
-2
@@ -281,7 +281,8 @@ export default {
|
||||
response.json().then(response => {
|
||||
if(!success){return;}
|
||||
if (response.src) {
|
||||
window.location.href = response.src;
|
||||
// window.location.href = response.src;
|
||||
window.open(response.src, '_blank');
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -309,7 +310,8 @@ export default {
|
||||
response.json().then(response => {
|
||||
if(!success){return;}
|
||||
if (response.src) {
|
||||
window.location.href = response.src;
|
||||
// window.location.href = response.src;
|
||||
window.open(response.src, '_blank');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+2
-1
@@ -109,7 +109,8 @@ export default {
|
||||
successHandler(response) {
|
||||
if(window.LARAVEL_VAPOR_ENABLED){
|
||||
if (response.src) {
|
||||
window.location.href = response.src;
|
||||
// window.location.href = response.src;
|
||||
window.open(response.src, '_blank');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+2
-1
@@ -93,7 +93,8 @@ export default {
|
||||
this.returnData = null;
|
||||
if(window.LARAVEL_VAPOR_ENABLED){
|
||||
if (response.src) {
|
||||
window.location.href = response.src;
|
||||
// window.location.href = response.src;
|
||||
window.open(response.src, '_blank');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -99,7 +99,8 @@ export default {
|
||||
successHandler(response) {
|
||||
if(window.LARAVEL_VAPOR_ENABLED){
|
||||
if (response.src) {
|
||||
window.location.href = response.src;
|
||||
// window.location.href = response.src;
|
||||
window.open(response.src, '_blank');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -95,7 +95,8 @@
|
||||
this.returnData = null;
|
||||
if(window.LARAVEL_VAPOR_ENABLED){
|
||||
if (response.src) {
|
||||
window.location.href = response.src;
|
||||
// window.location.href = response.src;
|
||||
window.open(response.src, '_blank');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -133,7 +133,8 @@ export default {
|
||||
response.json().then(response => {
|
||||
if(!success){return;}
|
||||
if (response.src) {
|
||||
window.location.href = response.src;
|
||||
// window.location.href = response.src;
|
||||
window.open(response.src, '_blank');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+2
-1
@@ -39,7 +39,8 @@
|
||||
response.json().then(response => {
|
||||
if(!success){return;}
|
||||
if (response.src) {
|
||||
window.location.href = response.src;
|
||||
// window.location.href = response.src;
|
||||
window.open(response.src, '_blank');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user