diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-26 12:43:16 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-26 12:43:16 +0000 |
commit | 1ab250f2a8e90c4aa24ada873f98c81dbdd4ae93 (patch) | |
tree | c8103e03730e6c0e9fc05dd33e1e9c3c496dc40f /views/default | |
parent | 4f1ddb5c50b8aef7e2f586936c21ae6176ca79de (diff) | |
download | elgg-1ab250f2a8e90c4aa24ada873f98c81dbdd4ae93.tar.gz elgg-1ab250f2a8e90c4aa24ada873f98c81dbdd4ae93.tar.bz2 |
fixed friends picker js include
git-svn-id: http://code.elgg.org/elgg/trunk@8489 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/core/friends/collection.php | 2 | ||||
-rw-r--r-- | views/default/forms/friends/edit.php | 2 | ||||
-rw-r--r-- | views/default/input/friendspicker.php (renamed from views/default/core/friends/picker.php) | 8 |
3 files changed, 5 insertions, 7 deletions
diff --git a/views/default/core/friends/collection.php b/views/default/core/friends/collection.php index 8d4e52e8a..89c44a2b3 100644 --- a/views/default/core/friends/collection.php +++ b/views/default/core/friends/collection.php @@ -37,7 +37,7 @@ echo " (<span id=\"friends_membership_count{$vars['friendspicker']}\">{$count}</ if ($friends = $vars['collection']->entities) { $content = elgg_view('core/friends/collectiontabs', array('owner' => elgg_get_logged_in_user_entity(), 'collection' => $vars['collection'], 'friendspicker' => $vars['friendspicker'])); - echo elgg_view('core/friends/picker', array('entities' => $friends, 'value' => $members, 'content' => $content, 'replacement' => '', 'friendspicker' => $vars['friendspicker'])); + echo elgg_view('input/friendspicker', array('entities' => $friends, 'value' => $members, 'content' => $content, 'replacement' => '', 'friendspicker' => $vars['friendspicker'])); ?> <?php //@todo JS 1.8: no ?> <script type="text/javascript"> diff --git a/views/default/forms/friends/edit.php b/views/default/forms/friends/edit.php index 3eba7e2cb..902113c9c 100644 --- a/views/default/forms/friends/edit.php +++ b/views/default/forms/friends/edit.php @@ -41,7 +41,7 @@ if($vars['collection_members']){ $form_body .= "</div>"; $form_body .= "<div><label>" . elgg_echo("friends:addfriends") . "</label>". - elgg_view('core/friends/picker',array('entities' => $vars['friends'], 'name' => 'friends_collection', 'highlight' => $highlight)) . "</div>"; + elgg_view('input/friendspicker',array('entities' => $vars['friends'], 'name' => 'friends_collection', 'highlight' => $highlight)) . "</div>"; $form_body .= "<div>"; if (isset($vars['collection'])) { diff --git a/views/default/core/friends/picker.php b/views/default/input/friendspicker.php index 3397a219b..b95640b0b 100644 --- a/views/default/core/friends/picker.php +++ b/views/default/input/friendspicker.php @@ -9,11 +9,9 @@ * @uses $vars['entities'] The array of ElggUser objects */ -$base = elgg_get_site_url(); -$viewtype = elgg_get_viewtype(); -elgg_register_js("{$base}vendors/jquery/jquery.easing.1.3.packed.js", 'jquery.easing'); -$url = elgg_get_simplecache_url('js', 'friendsPickerv1'); -elgg_register_js($url, 'friendsPicker'); +elgg_register_js('js/lib/friends_picker.js', 'friendspicker', 'head'); +elgg_register_js('vendors/jquery/jquery.easing.1.3.packed.js', 'jquery.easing'); + $chararray = elgg_echo('friendspicker:chararray'); |