I was trying to find out where the Javascript in the source of a webpage of RoundCube is generated but I can't find where this part of JS is generated:
<script type="text/javascript">
// UI startup
var UI = new rcube_mail_ui();
$(document).ready(function(){
UI.set('errortitle', 'An error occurred!');
UI.init();
});
</script>
The include statements for external Javascript files are generated in rcube_template.php line 90+.
The other JS in the source is generated in rcube_html_page.php +- line 200+.
I expected that those lines in rcube_template.php (before line 90) would add it:
// add common javascripts
$this->add_script('var '.JS_OBJECT_NAME.' = new rcube_webmail();', 'head_top');
// don't wait for page onload. Call init at the bottom of the page (delayed)
$this->add_script(JS_OBJECT_NAME.'.init();', 'docready');
But when I comment them (just for testing) they don't disappear from the source so I think it's not the correct spot.
Can anyone tell me where it comes from?
I'm using version 0.8.2
Greetings,
Nathalie