summaryrefslogtreecommitdiff
path: root/themes/okadmin/public/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/okadmin/public/js/app.js')
-rw-r--r--themes/okadmin/public/js/app.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/okadmin/public/js/app.js b/themes/okadmin/public/js/app.js
index 84c0f53..7a5eb60 100644
--- a/themes/okadmin/public/js/app.js
+++ b/themes/okadmin/public/js/app.js
@@ -22,7 +22,13 @@ var OKAdmin = function(){
$el.parent().find(".video-thumb").val( media.thumbnail )
})
})
-
+
+ $(document).on("click", ".remove-image", function(){
+ if (confirm("Delete this image?")) {
+ $(this).parent().remove()
+ }
+ })
+
$("form").submit(function(){
$(".template").remove()
})