mirror of
https://github.com/correl/codereview.git
synced 2025-04-02 03:17:48 -09:00
Cleaned up the reply buttons and their behaviour
This commit is contained in:
parent
26d7eb381e
commit
57961affb4
3 changed files with 6 additions and 9 deletions
|
@ -116,9 +116,6 @@ table.diff tr.annotation td {
|
|||
width: 90%;
|
||||
height: 3em;
|
||||
}
|
||||
.comment-buttons {
|
||||
text-align: right;
|
||||
}
|
||||
.comment .header {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
<div class="text ui-widget-content">
|
||||
{{ comment.text|linebreaks }}
|
||||
</div>
|
||||
<div class="comment-buttons">
|
||||
<a class="button" href="#comment-{{ comment.pk }}" rel="respond">Reply</a>
|
||||
</div>
|
||||
</div>
|
||||
{% for response in comment.response_set.all %}
|
||||
<div class="comment response ui-widget">
|
||||
|
@ -16,6 +19,3 @@
|
|||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="comment-buttons">
|
||||
<a class="button" href="#comment-{{ comment.pk }}" rel="respond">Reply</a>
|
||||
</div>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
$('<tr class="comment-form" id="' + form_id + '" ></tr>')
|
||||
.append($('<td colspan="3"></td>').append(form))
|
||||
);
|
||||
updateButtons();
|
||||
styleButtons();
|
||||
}
|
||||
});
|
||||
updateButtons();
|
||||
|
@ -79,8 +79,8 @@
|
|||
});
|
||||
return false;
|
||||
});
|
||||
$(this).parent().before($('<div class="comment-form"></div>').append(form));
|
||||
updateButtons();
|
||||
$(this).parents('.comment').parent().append($('<div class="comment-form"></div>').append(form));
|
||||
styleButtons();
|
||||
}
|
||||
});
|
||||
styleButtons();
|
||||
|
|
Loading…
Add table
Reference in a new issue