rework spamblock action buttons
anchor workaround and restored event order, should fix #24
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
|
||||
<ul class="filters_toolbar plainList">
|
||||
<li><a class="button_link" href="#filter_comments" title="Show filters"><span class="icon-filter"></span><span class="visuallyhidden"> Show filters</span></a></li> {* i18n *}
|
||||
<li><div class="backend_comments">{serendipity_hookPlugin hookAll=true hook="backend_comments_top" addData=$sql}</div></li> {* Does this ever emit anything but the 'Configure Anti-Spam' stuff? *}
|
||||
<li><div class="backend_comments">{$backend_comments_top}</div></li>
|
||||
</ul>
|
||||
|
||||
<fieldset id="filter_comments" class="additional_info">
|
||||
|
@ -1000,12 +1000,17 @@ var AccessifyHTML5 = function (defaults, more_fixes) {
|
||||
$('.comments_pane .pagination').clone().prependTo('.comments_pane');
|
||||
$('.entries_pane .pagination').clone().prependTo('.entries_pane');
|
||||
|
||||
// close comment reply on button click
|
||||
if ($('body').has('#comment_replied').size() > 0) {
|
||||
$('#comment_replied').click(function() {
|
||||
serendipity.closeCommentPopup();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// reopen detail element after spamblock action
|
||||
if ($('body').has('#serendipity_comments_list').size() > 0 && window.location.hash && $('body').has('#' + window.location.hash.replace('#', '')).size() > 0) {
|
||||
$('#' + window.location.hash.replace('#', '')).find(".toggle_info").click();
|
||||
}
|
||||
|
||||
// Equal Heights
|
||||
$(window).load(function() {
|
||||
@ -1016,3 +1021,5 @@ var AccessifyHTML5 = function (defaults, more_fixes) {
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user