diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-09-24 16:21:38 +1000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-09-24 16:21:38 +1000 |
commit | 11bfcbc720bb39833efddc367ac671723f3944a2 (patch) | |
tree | 8e15b4f747cf74571825d56bf40c22229a131660 /htdocs/js/common.js | |
parent | 3a7eb8f4c66d7ff1657560ab824150dd5128a115 (diff) | |
download | patchwork-11bfcbc720bb39833efddc367ac671723f3944a2.tar.bz2 patchwork-11bfcbc720bb39833efddc367ac671723f3944a2.tar.xz |
[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 <jk@ozlabs.org>
Diffstat (limited to 'htdocs/js/common.js')
-rw-r--r-- | htdocs/js/common.js | 6 |
1 files changed, 6 insertions, 0 deletions
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 + "'?"); +} |