From 519035a6eb28dd36ce898a80d652c08138b110c5 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 30 Apr 2016 20:18:10 -0400 Subject: Add global javascript file scrott.js Included initial function assertConfirm(), function to present user an "Are you sure?" prompt before submitting a web form. --- app/assets/js/scrott.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/assets/js/scrott.js (limited to 'app/assets') diff --git a/app/assets/js/scrott.js b/app/assets/js/scrott.js new file mode 100644 index 0000000..675597b --- /dev/null +++ b/app/assets/js/scrott.js @@ -0,0 +1,8 @@ +/* + * Common Javascript logic for the Scrott application + */ + +function assertConfirm() +{ + return confirm("Are you sure?"); +} -- cgit v1.2.3