Clean code of lib_notification. Now use cache like other js.

This commit is contained in:
Laurent Destailleur
2021-07-08 23:19:43 +02:00
parent 7d6b70f679
commit 1306ff4c0b
4 changed files with 140 additions and 111 deletions

View File

@@ -50,6 +50,11 @@ session_cache_limiter('public');
require_once '../../main.inc.php';
/*
* View
*/
// Define javascript type
top_httphead('text/javascript; charset=UTF-8');
// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.