- Added the feature to the Infocenter controller to generate a unique identifier for each call of itself, and to keep using the identifier for the next calls in the same browser/tab

- Added the feature to the FilterWidget to use this identifier to create a different session for each FilterWidget
This commit is contained in:
Paolo
2018-05-03 12:33:01 +02:00
parent 4e90523ccc
commit dba08d4d9e
12 changed files with 277 additions and 122 deletions
@@ -48,7 +48,11 @@ function appendTableActionsHtml()
$.ajax({
url: window.location.pathname.replace('infocenter/InfoCenter', 'Filters/rowNumber'),
method: "GET"
method: "GET",
data: {
fhc_controller_id: getUrlParameter("fhc_controller_id")
},
dataType: "json"
})
.done(function(data, textStatus, jqXHR) {
@@ -72,7 +76,9 @@ function appendTableActionsHtml()
setTableActions();
}
}).fail(function(jqXHR, textStatus, errorThrown) {});
}).fail(function(jqXHR, textStatus, errorThrown) {
alert(textStatus);
});
}
@@ -112,6 +118,27 @@ function setTableActions()
);
}
/**
*
*/
function getUrlParameter(sParam)
{
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++)
{
sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] === sParam)
{
return sParameterName[1];
}
}
}
/**
* Refreshes the side menu
*/
@@ -120,7 +147,9 @@ function refreshSideMenu()
$.ajax({
url: window.location.pathname+"/setNavigationMenuArray",
method: "GET",
data: {}
data: {
fhc_controller_id: getUrlParameter("fhc_controller_id")
}
})
.done(function(data, textStatus, jqXHR) {