diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-09-13 22:21:12 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-09-13 22:21:12 -0400 |
commit | 8a2611e5002982cbfd2843240c181c0796b043b2 (patch) | |
tree | 481f7d4ca018e3fcdc241b5b140b01bbd1c93562 /views/default/js | |
parent | 61337b126e0ee3a316f5cb9faf8982b0803793a4 (diff) | |
download | elgg-8a2611e5002982cbfd2843240c181c0796b043b2.tar.gz elgg-8a2611e5002982cbfd2843240c181c0796b043b2.tar.bz2 |
Fixes #3539 two conditions for triggering init,system now - dom is ready and languages loaded
Diffstat (limited to 'views/default/js')
-rw-r--r-- | views/default/js/elgg.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/views/default/js/elgg.php b/views/default/js/elgg.php index 76388f80c..133e128a4 100644 --- a/views/default/js/elgg.php +++ b/views/default/js/elgg.php @@ -56,11 +56,13 @@ elgg.version = '<?php echo get_version(); ?>'; elgg.release = '<?php echo get_version(true); ?>'; elgg.config.wwwroot = '<?php echo elgg_get_site_url(); ?>'; elgg.security.interval = 5 * 60 * 1000; <?php //@todo make this configurable ?> +elgg.config.domReady = false; +elgg.config.languageReady = false; //After the DOM is ready $(function() { - elgg.trigger_hook('init', 'system'); - elgg.trigger_hook('ready', 'system'); + elgg.config.domReady = true; + elgg.initWhenReady(); }); <?php |