summaryrefslogtreecommitdiff
path: root/themes/okadmin/public/js/app.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-09 17:17:00 -0400
committerJules Laplace <jules@okfoc.us>2015-04-09 17:17:00 -0400
commit7b7ac014579bafdb16e91a98f995f4fa7f55b4f1 (patch)
tree75b867826324b5180280376ae5450fa66357fad8 /themes/okadmin/public/js/app.js
parentb47be29a9fae6e3ac2040b0d308831bbe746c14e (diff)
alert when deleting posts
Diffstat (limited to 'themes/okadmin/public/js/app.js')
-rw-r--r--themes/okadmin/public/js/app.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/themes/okadmin/public/js/app.js b/themes/okadmin/public/js/app.js
index 8c85663..441172f 100644
--- a/themes/okadmin/public/js/app.js
+++ b/themes/okadmin/public/js/app.js
@@ -59,6 +59,15 @@ var OKAdmin = function(){
})
})
+ $("#delete_form").submit(function(e){
+ if (confirm("Are you sure you want to delete this record?")) {
+ return
+ }
+ else {
+ e.preventDefault()
+ }
+ })
+
function pressEnter(fn){
return function(e){
if (e.keyCode && e.keyCode !== 13) return