Better mass-moderation.
git-svn-id: https://develop.svn.wordpress.org/trunk@1987 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6653d4bf0c
commit
66411afc33
|
@ -145,10 +145,38 @@ echo " <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
<p class="submit"><input type="submit" name="submit" value="<?php _e('Moderate Comments »') ?>" /></p>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function markAllForDelete() {
|
||||||
|
for (var i=0; i< document.approval.length; i++) {
|
||||||
|
if (document.approval[i].value == "delete") {
|
||||||
|
document.approval[i].checked = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function markAllForApprove() {
|
||||||
|
for (var i=0; i< document.approval.length; i++) {
|
||||||
|
if (document.approval[i].value == "approve") {
|
||||||
|
document.approval[i].checked = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function markAllForDefer() {
|
||||||
|
for (var i=0; i< document.approval.length; i++) {
|
||||||
|
if (document.approval[i].value == "later") {
|
||||||
|
document.approval[i].checked = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
document.write('<ul><li><a href="javascript:markAllForApprove()"><?php _e('Mark all for approval'); ?></a></li><li><a href="javascript:markAllForDelete()"><?php _e('Mark all for deletion'); ?></a></li><li><a href="javascript:markAllForDefer()"><?php _e('Mark all for later'); ?></a></li></ul>');
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<noscript>
|
||||||
<p>
|
<p>
|
||||||
<input name="feelinglucky" type="checkbox" id="feelinglucky" value="true" /> <label for="feelinglucky"><?php _e('Delete every comment marked "defer." <strong>Warning: This can’t be undone.</strong>'); ?></label>
|
<input name="feelinglucky" type="checkbox" id="feelinglucky" value="true" /> <label for="feelinglucky"><?php _e('Delete every comment marked "defer." <strong>Warning: This can’t be undone.</strong>'); ?></label>
|
||||||
</p>
|
</p>
|
||||||
<p class="submit"><input type="submit" name="submit" value="<?php _e('Moderate Comments »') ?>" /></p>
|
</noscript>
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue