diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-09 02:09:20 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-09 02:09:20 -0400 |
| commit | 8f68b854b800075d3e3d413345037adb5c4e534a (patch) | |
| tree | 69b14df0f98a2888520e26d92a9aeaf89f5c0539 /themes/okadmin/public/js/app.js | |
| parent | 62fc7c328c78f5aff5a4f7ec95a5631c7d4e204b (diff) | |
delete image
Diffstat (limited to 'themes/okadmin/public/js/app.js')
| -rw-r--r-- | themes/okadmin/public/js/app.js | 8 |
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() }) |
