From 11bfcbc720bb39833efddc367ac671723f3944a2 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Wed, 24 Sep 2008 16:21:38 +1000 Subject: [html] Consolidate js files We don't need most of the stuff in htdocs/js/. Put the only function required into a common.js, which we can add other stuff to. Signed-off-by: Jeremy Kerr --- htdocs/js/common.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 htdocs/js/common.js (limited to 'htdocs/js/common.js') diff --git a/htdocs/js/common.js b/htdocs/js/common.js new file mode 100644 index 0000000..c87a5f9 --- /dev/null +++ b/htdocs/js/common.js @@ -0,0 +1,6 @@ + +function confirm_delete(type, name) +{ + return confirm("Are you sure you want to delete the " + type + + " '" + name + "'?"); +} -- cgit v1.2.3