Skip to content

Commit

Permalink
fix JS links
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed Nov 16, 2006
1 parent eba4d6c commit 5617626
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Slash/Slash.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1682,7 +1682,6 @@ sub _hard_dispComment {
<a href="#" onclick="return setFocusComment($comment->{cid},0,2)">Two</a> <a href="#" onclick="return setFocusComment($comment->{cid},0,2)">Two</a>
<a href="#" onclick="return setFocusComment($comment->{cid},0,3)">Three</a> <a href="#" onclick="return setFocusComment($comment->{cid},0,3)">Three</a>
<a href="#" onclick="return setFocusComment($comment->{cid},0,4)">Four</a> <a href="#" onclick="return setFocusComment($comment->{cid},0,4)">Four</a>
<a href="#" onclick="return setFocusComment($comment->{cid},0,5)">Five</a>
]</span> ]</span>
EOT EOT
} }
Expand Down Expand Up @@ -1791,8 +1790,8 @@ EOT2
<div class="commentTop"> <div class="commentTop">
<div class="title"> <div class="title">
$head $head
<span id="comment_score_$comment->{cid}" class="score">$score_to_display</span>
$comment_links $comment_links
<span id="comment_score_$comment->{cid}" class="score">$score_to_display</span>
</div> </div>
<div class="details"> <div class="details">
by $user_nick_to_display$zoosphere_display by $user_nick_to_display$zoosphere_display
Expand Down
10 changes: 5 additions & 5 deletions themes/slashcode/htdocs/images/comments.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -244,18 +244,18 @@ function setFocusComment(cid, alone, mods) {
// var statusdiv = $('comment_status_' + abscid); // var statusdiv = $('comment_status_' + abscid);
// statusdiv.innerHTML = 'Working ...'; // statusdiv.innerHTML = 'Working ...';


doModifiers(); // doModifiers();
if (!user_is_admin) // XXX: for now, admins-only, for testing if (!user_is_admin) // XXX: for now, admins-only, for testing
mods = 1; mods = 1;


if (!alone && mods) { if (!alone && mods) {
if (mods == 1 || ((mods == 4) && (abscid == cid)) || ((mods == 5) && (abscid != cid))) { if (mods == 1 || ((mods == 3) && (abscid == cid)) || ((mods == 4) && (abscid != cid))) {
shift_down = 0; shift_down = 0;
alt_down = 0; alt_down = 0;
} else if (mods == 2 || ((mods == 4) && (abscid != cid)) || ((mods == 5) && (abscid == cid))) { } else if (mods == 2 || ((mods == 3) && (abscid != cid)) || ((mods == 4) && (abscid == cid))) {
shift_down = 1; shift_down = 1;
alt_down = 0; alt_down = 0;
} else if (mods == 3) { } else if (mods == 5) {
shift_down = 1; shift_down = 1;
alt_down = 1; alt_down = 1;
} }
Expand All @@ -273,7 +273,7 @@ function setFocusComment(cid, alone, mods) {
updateCommentTree(abscid); updateCommentTree(abscid);
updateTotals(); updateTotals();


resetModifiers(); // resetModifiers();


// statusdiv.innerHTML = ''; // statusdiv.innerHTML = '';


Expand Down
1 change: 0 additions & 1 deletion themes/slashcode/templates/dispComment;misc;default
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ __template__
<a href="#" onclick="return setFocusComment([% cid %],0,2)">Two</a> <a href="#" onclick="return setFocusComment([% cid %],0,2)">Two</a>
<a href="#" onclick="return setFocusComment([% cid %],0,3)">Three</a> <a href="#" onclick="return setFocusComment([% cid %],0,3)">Three</a>
<a href="#" onclick="return setFocusComment([% cid %],0,4)">Four</a> <a href="#" onclick="return setFocusComment([% cid %],0,4)">Four</a>
<a href="#" onclick="return setFocusComment([% cid %],0,5)">Five</a>
]</span>[% END %] ]</span>[% END %]
</div> </div>
<div class="details"> <div class="details">
Expand Down

0 comments on commit 5617626

Please sign in to comment.