Permalink
Browse files

Prompt for a confirm before resetting new fit.

  • Loading branch information...
1 parent a075346 commit 0a54dcf959134e1cc27aa44e847bf4d670c603dd @Artefact2 Artefact2 committed May 23, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/new_fitting.php
View
@@ -62,6 +62,8 @@
call_local($steps[$step]);
+echo "<script>$(function() { $('input[name=\"reset_fit\"]').click(function() { return confirm('This will reset all the changes you made. Continue?'); }); });</script>\n";
+
\Osmium\State\put_state('create_fit_step', $step);
\Osmium\Chrome\print_footer();

0 comments on commit 0a54dcf

Please sign in to comment.