antville/code/Comment/$Comment.skin

31 lines
970 B
Text

<% #delete %>
<script type="text/javascript">
$(function() {
$("#confirmation").hide();
$("#confirm").click(function() {
$("button").attr("disabled", !$(this).attr("checked"));
});
$("#mode").click(function() {
if ($(this).attr("checked")) {
$("#confirm").attr("checked", false);
$("#confirmation").show();
$("button").attr("disabled", true);
} else {
$("#confirmation").hide();
$("button").attr("disabled", false);
}
});
});
</script>
<div>
<input type="checkbox" id="mode" name="mode" value="user" />
<label for="mode"><% gettext "Erase all comments of user {0}"
<% comment.creator %> %></label>
</div>
<div id="confirmation">
<input type="checkbox" id="confirm" name="confirm" value="1" />
<label for="confirm"><% gettext "Yes, really erase {0}"
<% ngettext "{0} comment" "{0} comments"
<% comment.related.size %> %> %></label>
</div>
<br />