mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Can disabled javascript on command line
This commit is contained in:
parent
d42b94076f
commit
8a1fdd2eb8
|
|
@ -607,10 +607,14 @@ if (! defined('NOLOGIN'))
|
|||
$conf->css = "/theme/".$conf->theme."/style.css.php";
|
||||
}
|
||||
// Set javascript option
|
||||
if (! empty($user->conf->MAIN_DISABLE_JAVASCRIPT))
|
||||
{
|
||||
$conf->use_javascript_ajax=! $user->conf->MAIN_DISABLE_JAVASCRIPT;
|
||||
}
|
||||
if (empty($_GET["nojs"])) // If javascript was not disabled on URL
|
||||
{
|
||||
if (! empty($user->conf->MAIN_DISABLE_JAVASCRIPT))
|
||||
{
|
||||
$conf->use_javascript_ajax=! $user->conf->MAIN_DISABLE_JAVASCRIPT;
|
||||
}
|
||||
}
|
||||
else $conf->use_javascript_ajax=0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user