diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-11-05 23:27:41 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-11-05 23:27:41 +0000 |
| commit | cfc93300465d64d65bf4de25d989277b55dd96cf (patch) | |
| tree | 091004f0b342f4c6e6000f3de15bf74f1cdb6fbb /modules_v3 | |
| parent | 7c3adf108dd7bd596d00d49e228525c0fef7784a (diff) | |
| download | webtrees-cfc93300465d64d65bf4de25d989277b55dd96cf.tar.gz webtrees-cfc93300465d64d65bf4de25d989277b55dd96cf.tar.bz2 webtrees-cfc93300465d64d65bf4de25d989277b55dd96cf.zip | |
(final part). (1) Only load datatables.js on pages that use it. (2) move JavaScript to end of page.
Diffstat (limited to 'modules_v3')
| -rw-r--r-- | modules_v3/recent_changes/module.php | 2 | ||||
| -rw-r--r-- | modules_v3/todays_events/module.php | 2 | ||||
| -rw-r--r-- | modules_v3/upcoming_events/module.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/modules_v3/recent_changes/module.php b/modules_v3/recent_changes/module.php index 5d42044bc8..036f1d06c4 100644 --- a/modules_v3/recent_changes/module.php +++ b/modules_v3/recent_changes/module.php @@ -106,7 +106,7 @@ class recent_changes_WT_Module extends WT_Module implements WT_Module_Block { // Implement class WT_Module_Block public function loadAjax() { - return true; + return false; // because it contains JS, which does not get executed.... } // Implement class WT_Module_Block diff --git a/modules_v3/todays_events/module.php b/modules_v3/todays_events/module.php index d82ddb178e..f1cf343d60 100644 --- a/modules_v3/todays_events/module.php +++ b/modules_v3/todays_events/module.php @@ -96,7 +96,7 @@ class todays_events_WT_Module extends WT_Module implements WT_Module_Block { // Implement class WT_Module_Block public function loadAjax() { - return true; + return false; // because it contains JS, which does not get executed.... } // Implement class WT_Module_Block diff --git a/modules_v3/upcoming_events/module.php b/modules_v3/upcoming_events/module.php index 8ddffab7f6..16924e8120 100644 --- a/modules_v3/upcoming_events/module.php +++ b/modules_v3/upcoming_events/module.php @@ -99,7 +99,7 @@ class upcoming_events_WT_Module extends WT_Module implements WT_Module_Block { // Implement class WT_Module_Block public function loadAjax() { - return true; + return false; // because it contains JS, which does not get executed.... } // Implement class WT_Module_Block |
