Fixe search page

This commit is contained in:
2021-02-10 16:07:18 +01:00
parent 1dd532ccb5
commit f1ebc52479
4 changed files with 5 additions and 49 deletions
+4 -21
View File
@@ -120,25 +120,8 @@ export class SearchPage implements OnInit {
*/
basicSearch(){
function getCookie(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for(var i = 0; i <ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
const APPType = getCookie('searchModalAPPType');
if(APPType == '0'){
if(window.location.pathname == '/home/agenda'){
console.log('aplication type 0');
@@ -168,7 +151,7 @@ export class SearchPage implements OnInit {
this.showLoader = false;
});
} else if (APPType == '8,361'){
} else if (window.location.pathname =='/home/gabinete-digital'){
console.log('aplication type 8,361');
@@ -222,7 +205,7 @@ export class SearchPage implements OnInit {
this.showLoader = false;
});
} else if (APPType == '386'){
} else if (window.location.pathname == '/home/publications'){
this.showLoader = true;