* Refactored and unified remove() methods and calls for greater flexibility as well as reliability * Added option to remove all comments by a user to Comment.remove() method and $Comment#delete skin * Added global #listItemFlag skin as well as listItemFlag_macro() for rendering vertically written text of items in a list view (e.g. closed) * Fixed bug in gettext_macro() and ngettext_macro() causing incorrect whitespace * Refactored timezone and locale handling * Modified automatic translation of untitled links in HopObject.link_macro() * Added honeypot to login and registration forms * Fixed client-side JavaScript to be evaluated when login or registration form is submitted, not only when the submit button is clicked * Removed redundant filter expression from DB mapping of Membership.images collection * Added Membership.content collection * Changed terminology from open to running polls, thus renaming Polls.open_action() method and Polls.open collection * Moved a lot of CSS used in root or administration sections from Site#stylesheet to $Root#stylesheet skin * Added Root.updateDomains() method (most likely already obsolete) * Removed Root.processHref() method (only necessary for very advanced setup) and obsolete comments * Fixed Root.xgettext() method to correctly read UTF-8 encoded data * Fixed Site.deleted_macro() to return the date object for late formatting * Refactored Site.processHref() for more convenient custom domain name mapping * Renamed Skins.advanced_action() method to Skins.all_action() * Removed redundant filter from Stories.comments collection * Removed unnecessary filter from Story.comments collection
29 lines
893 B
Text
29 lines
893 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 this user" %></label>
|
||
</div>
|
||
<div id="confirmation">
|
||
<input type="checkbox" id="confirm" name="confirm" value="1" />
|
||
<label for="confirm"><% gettext "Yes, really erase all the user’s
|
||
comments to the site" %></label>
|
||
</div>
|
||
<br />
|