0

use glpi on tablet on windows touch screen

jerome lienard il y a 5 ans 0

For use glpi on touchscreen tablet, I've need to remove the href link on the tabs otherwise my finger automaticly click on the href of the tabs. I've add this code

#html.class.php: line 1234

Html::requireJs('mobile-nav');

#html.class.php: line 5888

case 'mobile-nav':
$_SESSION['glpi_js_toload'][$name][] = 'js/mobile-nav.js';
break;

#js/mobile-nav.js

$(document).ready(() => {
$('#menu>li>a').removeAttr('href').css('cursor', 'pointer');
});