From e9cc4a95ca5a6e7192a26a4dc69f62c542158085 Mon Sep 17 00:00:00 2001 From: pete Date: Sat, 26 Jul 2008 00:06:16 +0000 Subject: friends picker fixed for new page layout, and hopefully I've fixed the load issue too git-svn-id: https://code.elgg.org/elgg/trunk@1552 36083f99-b078-4883-b0ff-0f9b5a30f544 --- javascript/friendsPickerv1.js | 6 +- views/default/css.php | 42 +++-- views/default/friends/picker.php | 334 ++++++++++++++++++++------------------- 3 files changed, 201 insertions(+), 181 deletions(-) diff --git a/javascript/friendsPickerv1.js b/javascript/friendsPickerv1.js index 843b2ff9d..71a919dd9 100755 --- a/javascript/friendsPickerv1.js +++ b/javascript/friendsPickerv1.js @@ -12,7 +12,7 @@ jQuery.fn.friendsPicker = function(settings) { var container = $(this); container.addClass("friendsPicker"); // set panelwidth manually as it's hidden initially - var panelWidth = 755; + var panelWidth = 685; // count the panels in the container var panelCount = container.find("div.panel").size(); @@ -96,8 +96,8 @@ jQuery.fn.friendsPicker = function(settings) { //$("div#friendsPickerNavigation" + j + " li.tab22 a").addClass("tabHasContent"); // generate link to 'all friends in collection' - removed for now - //$("div#friendsPickerNavigation" + j).append("
Collection members<\/a>

"); - $("div#friendsPickerNavigation" + j).append("
"); + $("div#friendsPickerNavigation" + j).append("
Collection members<\/a>

"); + //$("div#friendsPickerNavigation" + j).append("
"); j++; diff --git a/views/default/css.php b/views/default/css.php index 01033a54f..8f5ab7e32 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -1683,7 +1683,7 @@ div.expandall p { overflow: hidden; margin: 0; padding:0; - width: 755px; + width: 685px; height: 270px; /*clear: right;*/ background: white; @@ -1692,7 +1692,8 @@ div.expandall p { .friendsPicker .friendsPicker_container { /* long container used to house end-to-end panels. Width is calculated in JS */ position: relative; - left: 0; top: 0; + left: 0; + top: 0; width: 100%; list-style-type: none; /* -moz-user-select: none; */ @@ -1702,7 +1703,7 @@ div.expandall p { float:left; height: 100%; position: relative; - width: 755px; + width: 685px; margin: 0; padding:0; } @@ -1712,17 +1713,17 @@ div.expandall p { padding: 10px; background: #efefef; min-height: 230px; - } .friendsPickerNavigation { - margin: 0 0 20px 0; + margin: 0 0 10px 0; padding:0; } .friendsPickerNavigation ul { list-style: none; + padding-left: 0; } .friendsPickerNavigation ul li { @@ -1745,12 +1746,10 @@ div.expandall p { .tabHasContent { background: white; color:#333333 !important; } -/* -.friendsPickerNavigation li.tab22 a { background: white; color:#333333; } -*/ + .friendsPickerNavigation li a:hover { - background: lime; - color:white; + background: #333333; + color:white !important; } .friendsPickerNavigation li a.current { @@ -1780,18 +1779,22 @@ div.expandall p { .friendsPickerNavigationL, .friendsPickerNavigationR { position: absolute; - top: 120px; + top: 46px; text-indent: -9000em; } .friendsPickerNavigationL a, .friendsPickerNavigationR a { display: block; +/* height: 87px; width: 43px; +*/ + height: 43px; + width: 43px; } .friendsPickerNavigationL { - right: 78px; + right: 58px; z-index:1; } @@ -1809,4 +1812,19 @@ div.expandall p { } + +/* temp. force profile pic size */ +#profile_info_column_left #profile_icon_wrapper .usericon a.icon img { + width:276px; +} + + + + + + + + + + \ No newline at end of file diff --git a/views/default/friends/picker.php b/views/default/friends/picker.php index 4be60b12e..7a0c57c12 100644 --- a/views/default/friends/picker.php +++ b/views/default/friends/picker.php @@ -1,167 +1,169 @@ -name,0,1)); - if ($letter >= "0" && $letter <= "9") { - $letter = "0"; - } - if (!isset($users[$letter])) { - $users[$letter] = array(); - } - $users[$letter][$user->name] = $user; - - } - -?> - -
-
-
-
- -
-
-

- -"; - $col = 0; - - foreach($users[$letter] as $friend) { - if ($col == 0) echo ""; - - //echo "

" . $user->name . "

"; - $label = elgg_view("profile/icon",array('entity' => $friend, 'size' => 'tiny')); - $options[$label] = $friend->getGUID(); - if (in_array($friend->getGUID(),$vars['value'])) { - $checked = "checked = \"checked\""; - if (!in_array($letter,$activeletters)) - $activeletters[] = $letter; - } else { - $checked = ""; - } - -?> - - - - name="[]" value="" /> - - - - - -
- -
- - -name; - -?> - -"; - } - if ($col < 3) echo ""; - - echo ""; - - } - -?> - -
-
- -
-
-
-
- - - + \ No newline at end of file -- cgit v1.2.3