mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
01838408b8
commit
624fe947be
@ -629,6 +629,8 @@ public static function show_avatar($Avatar, $UserID, $Username, $Setting, $Size
|
||||
}
|
||||
if (!empty($AvatarMouseOverText)) {
|
||||
$AvatarMouseOverText = "title=\"$AvatarMouseOverText\" alt=\"$AvatarMouseOverText\"";
|
||||
} else {
|
||||
$AvatarMouseOverText = "alt=\"\"";
|
||||
}
|
||||
if ($EnabledRewards['HasSecondAvatar'] && !empty($Rewards['SecondAvatar'])) {
|
||||
$SecondAvatar = 'data-gazelle-second-avatar="' . ImageTools::process($Rewards['SecondAvatar']) . '"';
|
||||
|
@ -9,10 +9,10 @@ public static function vote_link($GroupID, $Vote = '') {
|
||||
if (!G::$LoggedUser['NoVoteLinks'] && check_perms('site_album_votes')) { ?>
|
||||
<span class="votespan brackets" style="white-space: nowrap;">
|
||||
Vote:
|
||||
<a href="#" onclick="UpVoteGroup(<?=$GroupID?>, '<?=G::$LoggedUser['AuthKey']?>'); return false;" class="tooltip small_upvote vote_link_<?=$GroupID?><?=(!empty($Vote) ? ' hidden' : '')?>" title="Upvote">↑</a>
|
||||
<span class="tooltip voted_type small_upvoted voted_up_<?=$GroupID?><?=(($Vote == 'Down' || empty($Vote)) ? ' hidden' : '')?>" title="Upvoted">↑</span>
|
||||
<a href="#" onclick="DownVoteGroup(<?=$GroupID?>, '<?=G::$LoggedUser['AuthKey']?>'); return false;" class="tooltip small_downvote vote_link_<?=$GroupID?><?=(!empty($Vote) ? ' hidden' : '')?>" title="Downvote">↓</a>
|
||||
<span class="tooltip voted_type small_downvoted voted_down_<?=$GroupID?><?=(($Vote == 'Up' || empty($Vote)) ? ' hidden' : '')?>" title="Downvoted">↓</span>
|
||||
<a href="#" onclick="UpVoteGroup(<?=$GroupID?>, '<?=G::$LoggedUser['AuthKey']?>'); return false;" class="tooltip small_upvote vote_link_<?=$GroupID?><?=(!empty($Vote) ? ' hidden' : '')?>" style="color: green; font-weight: bolder;" title="Upvote">∧</a>
|
||||
<span class="tooltip voted_type small_upvoted voted_up_<?=$GroupID?><?=(($Vote == 'Down' || empty($Vote)) ? ' hidden' : '')?>" style="color: green; font-weight: bolder;" title="Upvoted">∧</span>
|
||||
<a href="#" onclick="DownVoteGroup(<?=$GroupID?>, '<?=G::$LoggedUser['AuthKey']?>'); return false;" class="tooltip small_downvote vote_link_<?=$GroupID?><?=(!empty($Vote) ? ' hidden' : '')?>" style="color: red; font-weight: bolder;" title="Downvote">∨</a>
|
||||
<span class="tooltip voted_type small_downvoted voted_down_<?=$GroupID?><?=(($Vote == 'Up' || empty($Vote)) ? ' hidden' : '')?>" style="color: red; font-weight: bolder;" title="Downvoted">∨</span>
|
||||
<a href="#" onclick="UnvoteGroup(<?=$GroupID?>, '<?=G::$LoggedUser['AuthKey']?>'); return false;" class="tooltip small_clearvote vote_clear_<?=$GroupID?><?=(empty($Vote) ? ' hidden' : '')?>" title="Clear your vote">x</a>
|
||||
</span>
|
||||
<? }
|
||||
|
@ -1,4 +1,10 @@
|
||||
CHANGELOG
|
||||
CHANGE LOG
|
||||
|
||||
2013-10-05 by alderaan
|
||||
Similar Artists and torrent tag boxes, plus the mini up/downvote buttons on torrents when viewing an artist page, now use the same colored glyphs as the Album Votes box
|
||||
|
||||
2013-10-05 by alderaan
|
||||
Enhanced Album Votes box to show downvotes, the binomial confidence interval score, and the percentage of positive votes. Vote counts now use a colored arrow glyph.
|
||||
|
||||
2013-10-01 by alderaan
|
||||
In the staff toolbox, reorganized tools into more useful categories
|
||||
|
@ -687,8 +687,8 @@ function compare($X, $Y) {
|
||||
<li>
|
||||
<span title="<?=$Score?>"><a href="artist.php?id=<?=$Artist2ID?>" style="float: left; display: block;"><?=$Artist2Name?></a></span>
|
||||
<div style="float: right; display: block; letter-spacing: -1px;">
|
||||
<a href="artist.php?action=vote_similar&artistid=<?=$ArtistID?>&similarid=<?=$SimilarID?>&way=down" class="tooltip brackets" title="Vote down this similar artist. Use this when you feel that the two artists are not all that similar.">−</a>
|
||||
<a href="artist.php?action=vote_similar&artistid=<?=$ArtistID?>&similarid=<?=$SimilarID?>&way=up" class="tooltip brackets" title="Vote up this similar artist. Use this when you feel that the two artists are quite similar.">+</a>
|
||||
<a href="artist.php?action=vote_similar&artistid=<?=$ArtistID?>&similarid=<?=$SimilarID?>&way=up" class="tooltip brackets vote_artist_up" title="Vote up this similar artist. Use this when you feel that the two artists are quite similar.">∧</a>
|
||||
<a href="artist.php?action=vote_similar&artistid=<?=$ArtistID?>&similarid=<?=$SimilarID?>&way=down" class="tooltip brackets vote_artist_down" title="Vote down this similar artist. Use this when you feel that the two artists are not all that similar.">∨</a>
|
||||
<? if (check_perms('site_delete_tag')) { ?>
|
||||
<span class="remove remove_artist"><a href="artist.php?action=delete_similar&similarid=<?=$SimilarID?>&auth=<?=$LoggedUser['AuthKey']?>" class="tooltip brackets" title="Remove this similar artist">X</a></span>
|
||||
<? } ?>
|
||||
|
@ -336,7 +336,7 @@
|
||||
<td>Last post time</td>
|
||||
</tr>
|
||||
<? if (!$DB->has_results()) { ?>
|
||||
<tr><td colspan="3">Nothing found<?=((isset($AuthorID) && $AuthorID == 0) ? ' (unknown username)' : '')?>!</td></tr>
|
||||
<tr><td colspan="4">Nothing found<?=((isset($AuthorID) && $AuthorID == 0) ? ' (unknown username)' : '')?>!</td></tr>
|
||||
<? }
|
||||
|
||||
$Row = 'a'; // For the pretty colours
|
||||
@ -368,7 +368,7 @@
|
||||
</tr>
|
||||
<? if ($Type == 'body') { ?>
|
||||
<tr class="row<?=$Row?> hidden" id="post_<?=$PostID?>_text">
|
||||
<td colspan="3"><?=$Text->full_format($Body)?></td>
|
||||
<td colspan="4"><?=$Text->full_format($Body)?></td>
|
||||
</tr>
|
||||
<? }
|
||||
}
|
||||
|
@ -39,6 +39,24 @@ function create_row($Title, $URL, $HasPermission = false, $Tooltip = false) {
|
||||
<div class="permission_container">
|
||||
<!-- begin left column -->
|
||||
<?
|
||||
// begin Administration category
|
||||
$ToolsHTML = "";
|
||||
create_row("Client whitelist", "tools.php?action=whitelist", check_perms("admin_whitelist"));
|
||||
create_row("Create user", "tools.php?action=create_user", check_perms("admin_create_users"));
|
||||
create_row("Permissions manager", "tools.php?action=permissions", check_perms("admin_manage_permissions"));
|
||||
create_row("Special users", "tools.php?action=special_users", check_perms("admin_manage_permissions"));
|
||||
|
||||
if ($ToolsHTML) {
|
||||
?>
|
||||
<div class="permission_subcontainer">
|
||||
<table class="layout">
|
||||
<tr class="colhead"><td>Administration</td></tr>
|
||||
<?= $ToolsHTML ?>
|
||||
</table>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
|
||||
// begin Announcements category
|
||||
$ToolsHTML = "";
|
||||
create_row("Calendar", "tools.php?action=calendar", Calendar::can_view());
|
||||
@ -89,24 +107,6 @@ function create_row($Title, $URL, $HasPermission = false, $Tooltip = false) {
|
||||
<?= $ToolsHTML ?>
|
||||
</table>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
|
||||
// begin Administration category
|
||||
$ToolsHTML = "";
|
||||
create_row("Client whitelist", "tools.php?action=whitelist", check_perms("admin_whitelist"));
|
||||
create_row("Create user", "tools.php?action=create_user", check_perms("admin_create_users"));
|
||||
create_row("Permissions manager", "tools.php?action=permissions", check_perms("admin_manage_permissions"));
|
||||
create_row("Special users", "tools.php?action=special_users", check_perms("admin_manage_permissions"));
|
||||
|
||||
if ($ToolsHTML) {
|
||||
?>
|
||||
<div class="permission_subcontainer">
|
||||
<table class="layout">
|
||||
<tr class="colhead"><td>Administration</td></tr>
|
||||
<?= $ToolsHTML ?>
|
||||
</table>
|
||||
</div>
|
||||
<? } ?>
|
||||
<!-- end left column -->
|
||||
</div>
|
||||
|
@ -414,13 +414,13 @@ function generate_torrent_table($Caption, $Tag, $Details, $Limit) {
|
||||
<tr class="colhead">
|
||||
<td class="center" style="width: 15px;"></td>
|
||||
<td class="cats_col"></td>
|
||||
<td><strong>Name</strong></td>
|
||||
<td style="text-align: right;"><strong>Size</strong></td>
|
||||
<td style="text-align: right;"><strong>Data</strong></td>
|
||||
<td style="text-align: right;"><img src="static/styles/<?=$LoggedUser['StyleName']?>/images/snatched.png" alt="Snatches" title="Snatches" /></td>
|
||||
<td style="text-align: right;"><img src="static/styles/<?=$LoggedUser['StyleName']?>/images/seeders.png" alt="Seeders" title="Seeders" /></td>
|
||||
<td style="text-align: right;"><img src="static/styles/<?=$LoggedUser['StyleName']?>/images/leechers.png" alt="Leechers" title="Leechers" /></td>
|
||||
<td style="text-align: right;"><strong>Peers</strong></td>
|
||||
<td>Name</td>
|
||||
<td style="text-align: right;">Size</td>
|
||||
<td style="text-align: right;">Data</td>
|
||||
<td style="text-align: right;"><img src="static/styles/<?=$LoggedUser['StyleName']?>/images/snatched.png" alt="Snatches" title="Snatches" class="tooltip" /></td>
|
||||
<td style="text-align: right;"><img src="static/styles/<?=$LoggedUser['StyleName']?>/images/seeders.png" alt="Seeders" title="Seeders" class="tooltip" /></td>
|
||||
<td style="text-align: right;"><img src="static/styles/<?=$LoggedUser['StyleName']?>/images/leechers.png" alt="Leechers" title="Leechers" class="tooltip" /></td>
|
||||
<td style="text-align: right;">Peers</td>
|
||||
</tr>
|
||||
<?
|
||||
// Server is already processing a top10 query. Starting another one will make things slow
|
||||
|
@ -160,9 +160,10 @@
|
||||
$NumGroups = 0;
|
||||
foreach ($TopVotes as $GroupID => $Group) {
|
||||
extract(Torrents::array_group($Group));
|
||||
$Ups = $Group['Ups'];
|
||||
$Total = $Group['Total'];
|
||||
$UpVotes = $Group['Ups'];
|
||||
$TotalVotes = $Group['Total'];
|
||||
$Score = $Group['Score'];
|
||||
$DownVotes = $TotalVotes - $UpVotes;
|
||||
|
||||
$IsBookmarked = in_array($GroupID, $Bookmarks);
|
||||
|
||||
@ -209,7 +210,7 @@
|
||||
<a href="#" class="tooltip show_torrents_link" onclick="toggle_group(<?=$GroupID?>, this, event);" title="Expand this group. Hold "Ctrl" while clicking to expand all groups on this page."></a>
|
||||
</div>
|
||||
</td>
|
||||
<td class="center">
|
||||
<td class="center cats_col">
|
||||
<div title="<?=$TorrentTags->title()?>" class="<?=Format::css_category($GroupCategoryID)?> <?=$TorrentTags->css_name()?>"></div>
|
||||
</td>
|
||||
<td class="big_info">
|
||||
@ -230,7 +231,17 @@
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td colspan="4" class="votes_info_td"><strong><?=number_format($Ups)?></strong> upvotes out of <strong><?=number_format($Total)?></strong> total (<span title="Score: <?=number_format($Score * 100, 4)?>">Score: <?=number_format($Score * 100)?></span>).</td>
|
||||
<td colspan="4" class="votes_info_td">
|
||||
<span style="white-space: nowrap;">
|
||||
<span class="favoritecount_small tooltip" title="<?=$UpVotes . ($UpVotes == 1 ? ' upvote' : ' upvotes')?>"><span id="upvotes"><?=number_format($UpVotes)?></span> <span class="vote_album_up">∧</span></span>
|
||||
|
||||
<span class="favoritecount_small tooltip" title="<?=$DownVotes . ($DownVotes == 1 ? ' downvote' : ' downvotes')?>"><span id="downvotes"><?=number_format($DownVotes)?></span> <span class="vote_album_down">∨</span></span>
|
||||
|
||||
<span class="favoritecount_small" id="totalvotes"><?=number_format($TotalVotes)?></span> Total
|
||||
</span>
|
||||
<br />
|
||||
<span class="tooltip_interactive" title="<span style="font-weight: bold;">Score: <?=number_format($Score * 100, 4)?></span><br /><br />This is the lower bound of the binomial confidence interval <a href="wiki.php?action=article&id=1037">described here</a> multiplied by 100.">Score: <span class="favoritecount_small"><?=number_format($Score * 100, 1)?></span></span>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
$LastRemasterYear = '-';
|
||||
@ -313,7 +324,7 @@
|
||||
?>
|
||||
<tr class="torrent torrent_row<?=$SnatchedTorrentClass . $SnatchedGroupClass?>" id="group_<?=$GroupID?>">
|
||||
<td></td>
|
||||
<td class="center">
|
||||
<td class="center cats_col">
|
||||
<div title="<?=$TorrentTags->title()?>" class="<?=Format::css_category($GroupCategoryID)?> <?=$TorrentTags->css_name()?>">
|
||||
</div>
|
||||
</td>
|
||||
@ -354,12 +365,12 @@
|
||||
<table class="torrent_table grouping cats" id="discog_table">
|
||||
<tr class="colhead_dark">
|
||||
<td><!-- expand/collapse --></td>
|
||||
<td><!-- Category --></td>
|
||||
<td width="70%"><strong>Torrents</strong></td>
|
||||
<td class="cats_col"><!-- category --></td>
|
||||
<td width="70%">Torrents</td>
|
||||
<td>Size</td>
|
||||
<td class="sign"><img src="static/styles/<?=$LoggedUser['StyleName'] ?>/images/snatched.png" alt="Snatches" title="Snatches" /></td>
|
||||
<td class="sign"><img src="static/styles/<?=$LoggedUser['StyleName'] ?>/images/seeders.png" alt="Seeders" title="Seeders" /></td>
|
||||
<td class="sign"><img src="static/styles/<?=$LoggedUser['StyleName'] ?>/images/leechers.png" alt="Leechers" title="Leechers" /></td>
|
||||
<td class="sign"><img src="static/styles/<?=$LoggedUser['StyleName'] ?>/images/snatched.png" alt="Snatches" title="Snatches" class="tooltip" /></td>
|
||||
<td class="sign"><img src="static/styles/<?=$LoggedUser['StyleName'] ?>/images/seeders.png" alt="Seeders" title="Seeders" class="tooltip" /></td>
|
||||
<td class="sign"><img src="static/styles/<?=$LoggedUser['StyleName'] ?>/images/leechers.png" alt="Leechers" title="Leechers" class="tooltip" /></td>
|
||||
</tr>
|
||||
<?
|
||||
if ($TorrentList === false) { ?>
|
||||
|
@ -467,9 +467,9 @@ function compare($X, $Y) {
|
||||
<li>
|
||||
<a href="torrents.php?taglist=<?=$Tag['name']?>" style="float: left; display: block;"><?=display_str($Tag['name'])?></a>
|
||||
<div style="float: right; display: block; letter-spacing: -1px;" class="edit_tags_votes">
|
||||
<a href="torrents.php?action=vote_tag&way=down&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" title="Vote this tag down" class="brackets tooltip vote_tag_down">−</a>
|
||||
<a href="torrents.php?action=vote_tag&way=up&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" title="Vote this tag up" class="brackets tooltip vote_tag_up">∧</a>
|
||||
<?=$Tag['score']?>
|
||||
<a href="torrents.php?action=vote_tag&way=up&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" title="Vote this tag up" class="brackets tooltip vote_tag_up">+</a>
|
||||
<a href="torrents.php?action=vote_tag&way=down&groupid=<?=$GroupID?>&tagid=<?=$Tag['id']?>&auth=<?=$LoggedUser['AuthKey']?>" title="Vote this tag down" class="brackets tooltip vote_tag_down">∨</a>
|
||||
<? if (check_perms('users_warn')) { ?>
|
||||
<a href="user.php?id=<?=$Tag['userid']?>" title="View the profile of the user that added this tag" class="brackets tooltip view_tag_user">U</a>
|
||||
<? } ?>
|
||||
|
@ -4,14 +4,26 @@
|
||||
|
||||
$TotalVotes = $GroupVotes['Total'];
|
||||
$UpVotes = $GroupVotes['Ups'];
|
||||
$DownVotes = $TotalVotes - $UpVotes;
|
||||
|
||||
$Voted = isset($UserVotes[$GroupID]) ? $UserVotes[$GroupID]['Type'] : false;
|
||||
$Score = Votes::binomial_score($UpVotes, $TotalVotes);
|
||||
?>
|
||||
<div class="box" id="votes">
|
||||
<div class="head"><strong>Album Votes</strong></div>
|
||||
<div class="album_votes body">
|
||||
This has <span id="upvotes" class="favoritecount"><?=number_format($UpVotes)?></span> <?=(($UpVotes == 1) ? 'upvote' : 'upvotes')?> out of <span id="totalvotes" class="favoritecount"><?=number_format($TotalVotes)?></span> total<span id="upvoted"<?=(($Voted != 'Up') ? ' class="hidden"' : '')?>>, including your upvote</span><span id="downvoted"<?=(($Voted != 'Down') ? ' class="hidden"' : '')?>>, including your downvote</span>.
|
||||
<span class="favoritecount tooltip" title="<?=$UpVotes . ($UpVotes == 1 ? ' upvote' : ' upvotes')?>"><span id="upvotes"><?=number_format($UpVotes)?></span> <span class="vote_album_up">∧</span></span>
|
||||
|
||||
<span class="favoritecount tooltip" title="<?=$DownVotes . ($DownVotes == 1 ? ' downvote' : ' downvotes')?>"><span id="downvotes"><?=number_format($DownVotes)?></span> <span class="vote_album_down">∨</span></span>
|
||||
|
||||
<span class="favoritecount" id="totalvotes"><?=number_format($TotalVotes)?></span> Total
|
||||
<br /><br />
|
||||
<span class="tooltip_interactive" title="<span style="font-weight: bold;">Score: <?=number_format($Score * 100, 4)?></span><br /><br />This is the lower bound of the binomial confidence interval <a href="wiki.php?action=article&id=1037">described here</a> multiplied by 100.">Score: <span class="favoritecount"><?=number_format($Score * 100, 1)?></span></span>
|
||||
|
|
||||
<span class="favoritecount"><?=number_format($UpVotes / $TotalVotes * 100, 1)?>%</span> positive
|
||||
<br /><br />
|
||||
<span id="upvoted"<?=(($Voted != 'Up') ? ' class="hidden"' : '')?>>You have upvoted.<br /><br /></span>
|
||||
<span id="downvoted"<?=(($Voted != 'Down') ? ' class="hidden"' : '')?>>You have downvoted.<br /><br /></span>
|
||||
<? if (check_perms('site_album_votes')) { ?>
|
||||
<span<?=($Voted ? ' class="hidden"' : '')?> id="vote_message"><a href="#" class="brackets upvote" onclick="UpVoteGroup(<?=$GroupID?>, '<?=$LoggedUser['AuthKey']?>'); return false;">Upvote</a> - <a href="#" class="brackets downvote" onclick="DownVoteGroup(<?=$GroupID?>, '<?=$LoggedUser['AuthKey']?>'); return false;">Downvote</a></span>
|
||||
<? } ?>
|
||||
|
@ -259,10 +259,11 @@ function DownVoteGroup(groupid, authkey) {
|
||||
return;
|
||||
}
|
||||
voteLock = true;
|
||||
ajax.get('ajax.php?action=votefavorite&do=vote&groupid='+groupid+'&vote=down'+'&auth='+authkey, function (response) {
|
||||
ajax.get('ajax.php?action=votefavorite&do=vote&groupid=' + groupid + '&vote=down' + '&auth=' + authkey, function (response) {
|
||||
if (response == 'noaction') {
|
||||
//No increment
|
||||
} else if (response == 'success') {
|
||||
$('#downvotes').raw().innerHTML = (parseInt($('#downvotes').raw().innerHTML)) + 1;
|
||||
$('#totalvotes').raw().innerHTML = (parseInt($('#totalvotes').raw().innerHTML)) + 1;
|
||||
}
|
||||
}
|
||||
@ -279,7 +280,7 @@ function UpVoteGroup(groupid, authkey) {
|
||||
return;
|
||||
}
|
||||
voteLock = true;
|
||||
ajax.get('ajax.php?action=votefavorite&do=vote&groupid='+groupid+'&vote=up'+'&auth='+authkey, function (response) {
|
||||
ajax.get('ajax.php?action=votefavorite&do=vote&groupid=' + groupid + '&vote=up' + '&auth=' + authkey, function (response) {
|
||||
if (response == 'noaction') {
|
||||
//No increment
|
||||
} else if (response == 'success') {
|
||||
@ -301,11 +302,12 @@ function UnvoteGroup(groupid, authkey) {
|
||||
return;
|
||||
}
|
||||
voteLock = true;
|
||||
ajax.get('ajax.php?action=votefavorite&do=unvote&groupid='+groupid+'&auth='+authkey, function (response) {
|
||||
ajax.get('ajax.php?action=votefavorite&do=unvote&groupid=' + groupid + '&auth=' + authkey, function (response) {
|
||||
if (response == 'noaction') {
|
||||
//No increment
|
||||
} else if (response == 'success-down') {
|
||||
$('#totalvotes').raw().innerHTML = (parseInt($('#totalvotes').raw().innerHTML)) - 1;
|
||||
$('#downvotes').raw().innerHTML = (parseInt($('#downvotes').raw().innerHTML)) - 1;
|
||||
} else if (response == 'success-up') {
|
||||
$('#totalvotes').raw().innerHTML = (parseInt($('#totalvotes').raw().innerHTML)) - 1;
|
||||
$('#upvotes').raw().innerHTML = (parseInt($('#upvotes').raw().innerHTML)) - 1;
|
||||
|
@ -4,11 +4,11 @@ function DownVoteGroup(groupid, authkey) {
|
||||
return;
|
||||
}
|
||||
voteLock = true;
|
||||
ajax.get('ajax.php?action=votefavorite&do=vote&groupid='+groupid+'&vote=down'+'&auth='+authkey, function (response) {return});
|
||||
$('.vote_link_'+groupid).ghide();
|
||||
$('.vote_clear_'+groupid).gshow();
|
||||
$('.voted_down_'+groupid).gshow();
|
||||
$('.voted_up_'+groupid).ghide();
|
||||
ajax.get('ajax.php?action=votefavorite&do=vote&groupid=' + groupid + '&vote=down' + '&auth=' + authkey, function (response) { return });
|
||||
$('.vote_link_' + groupid).ghide();
|
||||
$('.vote_clear_' + groupid).gshow();
|
||||
$('.voted_down_' + groupid).gshow();
|
||||
$('.voted_up_' + groupid).ghide();
|
||||
voteLock = false;
|
||||
}
|
||||
|
||||
@ -17,11 +17,11 @@ function UpVoteGroup(groupid, authkey) {
|
||||
return;
|
||||
}
|
||||
voteLock = true;
|
||||
ajax.get('ajax.php?action=votefavorite&do=vote&groupid='+groupid+'&vote=up'+'&auth='+authkey, function (response) {return});
|
||||
$('.vote_link_'+groupid).ghide();
|
||||
$('.vote_clear_'+groupid).gshow();
|
||||
$('.voted_down_'+groupid).ghide();
|
||||
$('.voted_up_'+groupid).gshow();
|
||||
ajax.get('ajax.php?action=votefavorite&do=vote&groupid=' + groupid + '&vote=up' + '&auth=' + authkey, function (response) { return });
|
||||
$('.vote_link_' + groupid).ghide();
|
||||
$('.vote_clear_' + groupid).gshow();
|
||||
$('.voted_down_' + groupid).ghide();
|
||||
$('.voted_up_' + groupid).gshow();
|
||||
voteLock = false;
|
||||
}
|
||||
|
||||
@ -30,10 +30,10 @@ function UnvoteGroup(groupid, authkey) {
|
||||
return;
|
||||
}
|
||||
voteLock = true;
|
||||
ajax.get('ajax.php?action=votefavorite&do=unvote&groupid='+groupid+'&auth='+authkey, function (response) {return});
|
||||
$('.vote_link_'+groupid).gshow();
|
||||
$('.vote_clear_'+groupid).ghide();
|
||||
$('.voted_down_'+groupid).ghide();
|
||||
$('.voted_up_'+groupid).ghide();
|
||||
ajax.get('ajax.php?action=votefavorite&do=unvote&groupid=' + groupid + '&auth=' + authkey, function (response) { return });
|
||||
$('.vote_link_' + groupid).gshow();
|
||||
$('.vote_clear_' + groupid).ghide();
|
||||
$('.voted_down_' + groupid).ghide();
|
||||
$('.voted_up_' + groupid).ghide();
|
||||
voteLock = false;
|
||||
}
|
||||
|
@ -468,14 +468,15 @@ td.colhead, .colhead td, .colhead th {
|
||||
|
||||
.colhead .sign, .colhead_dark .sign {
|
||||
padding: 0px 8px 0px 8px;
|
||||
vertical-align:middle;
|
||||
text-align:center;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
font-size: 12pt;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.colhead_dark {
|
||||
background: #b78234 url(images/woodnavcenter.png) repeat-x;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
td.label {
|
||||
@ -511,7 +512,7 @@ table.slice {
|
||||
}
|
||||
|
||||
.hide {
|
||||
display:none;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Layout (home page) */
|
||||
@ -561,27 +562,27 @@ ul.poll li.graph {
|
||||
}
|
||||
|
||||
.filter_torrents {
|
||||
width:750px;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
margin-bottom:15px;
|
||||
width: 750px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.filter_torrents .submit {
|
||||
text-align:right;
|
||||
padding-top:5px;
|
||||
text-align: right;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.filter_torrents .inputtext {
|
||||
width:400px;
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
.filter_torrents .smaller {
|
||||
width:300px;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.filter_torrents .smallest {
|
||||
width:50px;
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.filter_torrents option {
|
||||
|
@ -298,6 +298,11 @@ span.secondary_class {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.favoritecount_small {
|
||||
font-size: 110%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ul.votedalbums li {
|
||||
list-style: none;
|
||||
list-style-type: none;
|
||||
@ -606,3 +611,13 @@ tr.torrent .bookmark>a:after {
|
||||
.permission_subcontainer {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.vote_tag_up, .vote_artist_up, .vote_album_up {
|
||||
color: green;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.vote_tag_down, .vote_artist_down, .vote_album_down {
|
||||
color: red;
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user