make optional the form confirmation dialog
Used patch #6 on https://www.drupal.org/node/3185848 from xeniksp as the starting point for the re-roll.
This seems like LOTS of changes in the JS, but the 2 new if statements create lots of changes (due to indenting).
Please let me know if you have any questions about this. Thanks!
Closes #3185848