|
// TODO: Remove jQuery $('#md_modal') backward compatibility when Core 4.3 deprecated |
// Add access to history on gauge
document.querySelector('#gauge-container-#id#').addEventListener('click', function(event) {
if (!event.target.classList.contains('hidden') && event.target.hasAttribute('cmd-id')) {
if (typeof jeeDialog !== 'undefined') {
jeeDialog.dialog({
id: 'md_cmdHistory',
title: 'Historique',
contentUrl: 'index.php?v=d&modal=cmd.history&id=' + event.target.getAttribute('cmd-id')
});
} else {
// TODO: Remove jQuery $('#md_modal') backward compatibility when Core 4.3 deprecated
$('#md_modal').dialog({title: "Historique"}).load('index.php?v=d&modal=cmd.history&id='+event.target.getAttribute('cmd-id')).dialog('open');
}
}
plugin-brother/core/template/dashboard/brother.template.html
Line 164 in 3b8df79