Empty commit

This commit is contained in:
Git 2015-02-20 08:00:25 +00:00
parent 2838f1526d
commit 051ed8520e
3 changed files with 24 additions and 10 deletions

View File

@ -13,7 +13,7 @@
View::show_header('Friends');
View::show_header('Friends','comments');
$UserID = $LoggedUser['ID'];

View File

@ -10,7 +10,7 @@
}
list($Page, $Limit) = Format::page_limit($PerPage);
View::show_header('Subscriptions','subscriptions,bbcode');
View::show_header('Subscriptions','subscriptions,comments,bbcode');
$ShowUnread = (!isset($_GET['showunread']) && !isset($HeavyInfo['SubscriptionsUnread']) || isset($HeavyInfo['SubscriptionsUnread']) && !!$HeavyInfo['SubscriptionsUnread'] || isset($_GET['showunread']) && !!$_GET['showunread']);
$ShowCollapsed = (!isset($_GET['collapse']) && !isset($HeavyInfo['SubscriptionsCollapse']) || isset($HeavyInfo['SubscriptionsCollapse']) && !!$HeavyInfo['SubscriptionsCollapse'] || isset($_GET['collapse']) && !!$_GET['collapse']);
@ -230,7 +230,7 @@
<tr class="row<?=$ShowCollapsed ? ' hidden' : '' ?>">
<? if (Users::has_avatars_enabled()) { ?>
<td class="avatar" valign="top">
<?=Users::show_avatar($Result['LastReadAvatar'], $Result['LastReadUsername'], $HeavyInfo['DisableAvatars'])?>
<?=Users::show_avatar($Result['LastReadAvatar'], $Result['LastReadUserID'], $Result['LastReadUsername'], $HeavyInfo['DisableAvatars'])?>
</td>
<? } ?>
<td class="body" valign="top">

View File

@ -395,22 +395,36 @@ $(document).ready(function() {
var avatars = new Array();
$(".double_avatar").each(function() {
if ($(this).data("gazelle-second-avatar")) {
$(this).data("fading", "");
var secondAvatar = $(this).data("gazelle-second-avatar");
var originalAvatar = $(this).attr("src");
if ($.inArray(secondAvatar, avatars) == -1) {
// Preload second image
avatars.push(secondAvatar);
image = new Image();
var image = new Image();
image.src = secondAvatar;
}
$(this).mouseover(function() {
$(this).fadeOut(fadeSpeed, function() {
if ($(this).data("fading") == "") {
var originalHeight = $(this).parent().height();
$(this).data("fading", "in");
$(this).fadeTo(fadeSpeed, 0, function() {
$(this).attr("src", secondAvatar);
}).fadeIn(fadeSpeed);
if (!this.parentNode.style.height) {
$(this).parent().css("height", Math.max($(this).parent().height(), originalHeight) + 'px');
}
}).fadeTo(fadeSpeed, 1);
}
});
$(this).mouseout(function() {
if ($(this).data("fading") != "out" && ($(this).data("fading") != "" || $(this).attr("src") != originalAvatar)) {
$(this).data("fading", "out");
$(this).fadeOut(fadeSpeed, function() {
$(this).attr("src", originalAvatar);
}).fadeIn(fadeSpeed);
}).fadeIn(fadeSpeed, function() {
$(this).data("fading", "");
});
}
});
}