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 ++++++++ app/view/master/foot.view.php | 1 + 2 files changed, 9 insertions(+) create mode 100644 app/assets/js/scrott.js (limited to 'app') 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?"); +} diff --git a/app/view/master/foot.view.php b/app/view/master/foot.view.php index 6220f89..c749ad0 100644 --- a/app/view/master/foot.view.php +++ b/app/view/master/foot.view.php @@ -1,5 +1,6 @@ + isError() || $mod->isWarning() || $mod->isNotice()) { ?>