aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/friends/picker.php4
-rw-r--r--views/default/page_elements/header.php13
2 files changed, 17 insertions, 0 deletions
diff --git a/views/default/friends/picker.php b/views/default/friends/picker.php
index db33ffc09..18d70de5a 100644
--- a/views/default/friends/picker.php
+++ b/views/default/friends/picker.php
@@ -13,6 +13,10 @@
*
* @uses $vars['entities'] The array of ElggUser objects
*/
+
+ // Let the system know that the friends picker is in use
+ global $pickerinuse;
+ $pickerinuse = true;
// Initialise internalname
if (!isset($vars['internalname'])) {
diff --git a/views/default/page_elements/header.php b/views/default/page_elements/header.php
index 609e6181b..933cfaeb7 100644
--- a/views/default/page_elements/header.php
+++ b/views/default/page_elements/header.php
@@ -59,11 +59,24 @@ END;
<script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery-ui-personalized-1.5.packed.js"></script>
<script type="text/javascript" src="<?php echo $vars['url']; ?>javascript/initialise_elgg.js"></script>
+
+<?php
+
+ global $pickerinuse;
+ if (isset($pickerinuse) && $pickerinuse == true) {
+
+?>
<!-- only needed on pages where we have friends collections and/or the friends picker-->
<script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery-easing.1.2.pack.js"></script>
<script type="text/javascript" src="<?php echo $vars['url']; ?>vendors/jquery/jquery-easing-compatibility.1.2.pack.js"></script>
<script type="text/javascript" src="<?php echo $vars['url']; ?>javascript/friendsPickerv1.js"></script>
+
+<?php
+
+ }
+
+?>
<!-- include the default css file -->
<link rel="stylesheet" href="<?php echo $vars['url']; ?>_css/css.css" type="text/css" />