summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/assets/js/scrott.js8
-rw-r--r--app/view/master/foot.view.php1
2 files changed, 9 insertions, 0 deletions
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 @@
<script type="text/javascript" src="<?=$mod->ar()?>/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="<?=$mod->ar()?>/assets/js/bootstrap.min.js"></script>
+<script type="text/javascript" src="<?=$mod->ar()?>/assets/js/scrott.js"></script>
<?php if ($mod->isError() || $mod->isWarning() || $mod->isNotice()) { ?>
<script type="text/javascript">