PMCORE-737

This commit is contained in:
Paula Quispe
2020-09-08 16:02:57 -04:00
parent 174fe46446
commit e8b47866b2
8 changed files with 27 additions and 7 deletions

View File

@@ -26,6 +26,7 @@
*/
use ProcessMaker\Plugins\PluginRegistry;
use ProcessMaker\Core\System;
/**
* Class headPublisher
@@ -350,9 +351,6 @@ class headPublisher
// enabled for particular use
$head .= $this->getExtJsLibraries();
// $head .= " <script type='text/javascript' src='/js/ext/draw2d.js'></script>\n";
// $head .= " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/translation." . SYS_LANG . ".js") . "\"></script>\n";
if (!isset($this->extJsSkin) || $this->extJsSkin == '') {
$this->extJsSkin = 'xtheme-gray';
//$this->extJsSkin = 'gtheme';
@@ -365,6 +363,15 @@ class headPublisher
$head = $head . " <script type=\"text/javascript\" src=\"" . G::browserCacheFilesUrl("/js/ext/extjs_rtl.js") . "\"></script>\n";
}
// Get the value defined in the ext_ajax_timeout
if (defined('EXT_AJAX_TIMEOUT')) {
$extAjaxTimeout = EXT_AJAX_TIMEOUT;
} else {
$config = System::getSystemConfiguration();
$extAjaxTimeout = $config['ext_ajax_timeout'];
}
$head .= '<script>ext_ajax_timeout = ' . $extAjaxTimeout . ';</script>';
return $head;
}