mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
Fixe search page
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user