Permalink
Browse files

fix JS links

  • Loading branch information...
1 parent eba4d6c commit 56176267471f74a36c78359770c4520fb1957571 @pudge pudge committed Nov 16, 2006
View
@@ -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,3)">Three</a>
<a href="#" onclick="return setFocusComment($comment->{cid},0,4)">Four</a>
- <a href="#" onclick="return setFocusComment($comment->{cid},0,5)">Five</a>
]</span>
EOT
}
@@ -1791,8 +1790,8 @@ EOT2
<div class="commentTop">
<div class="title">
$head
- <span id="comment_score_$comment->{cid}" class="score">$score_to_display</span>
$comment_links
+ <span id="comment_score_$comment->{cid}" class="score">$score_to_display</span>
</div>
<div class="details">
by $user_nick_to_display$zoosphere_display
@@ -244,18 +244,18 @@ function setFocusComment(cid, alone, mods) {
// var statusdiv = $('comment_status_' + abscid);
// statusdiv.innerHTML = 'Working ...';
- doModifiers();
+// doModifiers();
if (!user_is_admin) // XXX: for now, admins-only, for testing
mods = 1;
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;
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;
alt_down = 0;
- } else if (mods == 3) {
+ } else if (mods == 5) {
shift_down = 1;
alt_down = 1;
}
@@ -273,7 +273,7 @@ function setFocusComment(cid, alone, mods) {
updateCommentTree(abscid);
updateTotals();
- resetModifiers();
+// resetModifiers();
// statusdiv.innerHTML = '';
@@ -40,7 +40,6 @@ __template__
<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,4)">Four</a>
- <a href="#" onclick="return setFocusComment([% cid %],0,5)">Five</a>
]</span>[% END %]
</div>
<div class="details">

0 comments on commit 5617626

Please sign in to comment.