mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Fixed agent link on javascript chrome extension
This commit is contained in:
parent
426128bb51
commit
e27bf1a63c
@ -144,7 +144,7 @@ function parseReplyEvents (reply) {
|
|||||||
fetchedEvents.push({
|
fetchedEvents.push({
|
||||||
'id' : event.id_evento,
|
'id' : event.id_evento,
|
||||||
'agent_name' : event.agent_name,
|
'agent_name' : event.agent_name,
|
||||||
'agent' : event.id_agent,
|
'agent' : event.id_agente,
|
||||||
'date' : event.timestamp,
|
'date' : event.timestamp,
|
||||||
'title' : event.evento,
|
'title' : event.evento,
|
||||||
'module' : event.id_agentmodule,
|
'module' : event.id_agentmodule,
|
||||||
@ -215,7 +215,7 @@ function getNotification(pEvent){
|
|||||||
if(pEvent['module'] != 0) even += " in the module with Id "+ pEvent['module'];
|
if(pEvent['module'] != 0) even += " in the module with Id "+ pEvent['module'];
|
||||||
even += ".";
|
even += ".";
|
||||||
|
|
||||||
var url = (pEvent['agent']=="")
|
var url = (pEvent['agent'] == 0)
|
||||||
? localStorage["ip_address"]+"/index.php?sec=eventos&sec2=operation/events/events"
|
? localStorage["ip_address"]+"/index.php?sec=eventos&sec2=operation/events/events"
|
||||||
: localStorage["ip_address"]+"/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=" + pEvent['agent'];
|
: localStorage["ip_address"]+"/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=" + pEvent['agent'];
|
||||||
|
|
||||||
|
@ -91,12 +91,12 @@ function showEvents(){
|
|||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
var temp_style;
|
var temp_style;
|
||||||
|
|
||||||
var agent_url = (allEvents[i]["agent_name"] == 0)
|
var agent_url = (allEvents[i]["agent"] == 0)
|
||||||
? localStorage["ip_address"]
|
? localStorage["ip_address"]
|
||||||
+ "/index.php?sec=eventos&sec2=operation/events/events"
|
+ "/index.php?sec=eventos&sec2=operation/events/events"
|
||||||
: localStorage["ip_address"]
|
: localStorage["ip_address"]
|
||||||
+ "/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente="
|
+ "/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente="
|
||||||
+ allEvents[i]['agent_name'];
|
+ allEvents[i]['agent'];
|
||||||
a.setAttribute("href",agent_url);
|
a.setAttribute("href",agent_url);
|
||||||
a.target = "_blank";
|
a.target = "_blank";
|
||||||
a.className = 'a_2_mo';
|
a.className = 'a_2_mo';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user