aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Bakker <jeabakker@coldtrick.com>2012-06-20 10:11:22 +0200
committerJerome Bakker <jeabakker@coldtrick.com>2012-06-20 10:11:22 +0200
commitd343f71960285f4acd94fa9547719eea9cfdc760 (patch)
tree535e4f8a690089a68e4772a73d9a909e756bdf07
parent690f226100a2f690bd77d05a82668c9cfee7b863 (diff)
downloadelgg-d343f71960285f4acd94fa9547719eea9cfdc760.tar.gz
elgg-d343f71960285f4acd94fa9547719eea9cfdc760.tar.bz2
changed: loading of jQuery treeview library to prevent potential
unnecessary loading
-rw-r--r--mod/pages/start.php4
-rw-r--r--mod/pages/views/default/pages/sidebar/navigation.php6
2 files changed, 5 insertions, 5 deletions
diff --git a/mod/pages/start.php b/mod/pages/start.php
index 834e98870..c385131bd 100644
--- a/mod/pages/start.php
+++ b/mod/pages/start.php
@@ -106,10 +106,6 @@ function pages_page_handler($page) {
elgg_load_library('elgg:pages');
- // add the jquery treeview files for navigation
- elgg_load_js('jquery-treeview');
- elgg_load_css('jquery-treeview');
-
if (!isset($page[0])) {
$page[0] = 'all';
}
diff --git a/mod/pages/views/default/pages/sidebar/navigation.php b/mod/pages/views/default/pages/sidebar/navigation.php
index fe017b1a7..65eb500c8 100644
--- a/mod/pages/views/default/pages/sidebar/navigation.php
+++ b/mod/pages/views/default/pages/sidebar/navigation.php
@@ -5,6 +5,11 @@
* @uses $vars['page'] Page object if manually setting selected item
*/
+// add the jquery treeview files for navigation
+elgg_load_js('jquery-treeview');
+elgg_load_css('jquery-treeview');
+
+
$selected_page = elgg_extract('page', $vars, false);
if ($selected_page) {
$url = $selected_page->getURL();
@@ -51,4 +56,3 @@ if ($selected_page) {
});
</script>
-