General Community > Development 2.10.x
2.13
dbs:
Ok, and what do you think about the other thing named {BACKEND_BODY_MODULE_JS}?
But i have nothing tested.
crnogorac081:
inside class.admin.php , line 375 inside print_footer() there are only replacements for:
--- Code: ---
public function print_footer($activateJsAdmin = false) {
...
$footer_template->set_var(array(
'IS_ADMIN' => ($this->get_user_id()==1),
'BACKEND_BODY_MODULE_JS' => $this->register_backend_modfiles_body('js'),
'WB_URL' => WB_URL,
'ADMIN_URL' => ADMIN_URL,
'THEME_URL' => THEME_URL,
'HELPER_URL' => WB_URL.'/framework/helpers',
) );
....
}
--- End code ---
So the BACKEND_BODY_MODULE _JS only displays backend_body.js and there is no placeholder to display backend.js
dbs:
Understand.
A test with additionally 'BACKEND_MODULE_JS' => $this->register_backend_mo dfiles('js'), works.
--- Code: ---$footer_template->set_var([
'IS_ADMIN' => ($this->get_user_id()==1),
'BACKEND_MODULE_JS' => $this->register_backend_modfiles('js'),
'BACKEND_BODY_MODULE_JS' => $this->register_backend_modfiles_body('js'),
..........
--- End code ---
backend.js will loaded in the footer.
But seems some modules need the JS before (e.g. module Hints).
So i think it is not needed to do all JS in the footer.
crnogorac081:
I know I can add this manualy, but this is a request to add this to stock 2.13 version
Navigation
[0] Message Index
[*] Previous page
Go to full version