Skip to content

Commit

Permalink
Move reset prompt to new JavaScript file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jammycakes committed Oct 8, 2011
1 parent 1bdda96 commit 1b8d131
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 6 additions & 0 deletions js/admin.js
@@ -0,0 +1,6 @@
function confirm_timeout_reset() {
return window.confirm(
"Are you sure you want to reset all posts and pages to their default "+
"settings? This action can not be undone."
);
}
8 changes: 0 additions & 8 deletions php/form.config.php
Expand Up @@ -104,14 +104,6 @@
</form>

<form method="POST" action="" id="comment-timeout-reset">
<script type="text/javascript">
function confirm_timeout_reset() {
return window.confirm(
"Are you sure you want to reset all posts and pages to their default "+
"settings? This action can not be undone."
);
}
</script>
<?php if (function_exists('wp_nonce_field')) { wp_nonce_field('comment-timeout-reset'); } ?>
<input type="hidden" name="command" value="reset" />
<h3>Reset per-post settings</h3>
Expand Down

0 comments on commit 1b8d131

Please sign in to comment.