summaryrefslogtreecommitdiff
path: root/themes/okadmin/public
diff options
context:
space:
mode:
Diffstat (limited to 'themes/okadmin/public')
-rw-r--r--themes/okadmin/public/css/main.css10
-rw-r--r--themes/okadmin/public/js/app.js8
2 files changed, 17 insertions, 1 deletions
diff --git a/themes/okadmin/public/css/main.css b/themes/okadmin/public/css/main.css
index 0ba6286..d67d312 100644
--- a/themes/okadmin/public/css/main.css
+++ b/themes/okadmin/public/css/main.css
@@ -202,6 +202,16 @@ label {
margin-top: 1.0em;
}
+.main.resource form img {
+ width: 10em;
+ max-height: 10em;
+ border: 0;
+}
+.main.resource form textarea.caption {
+ width: 15em;
+ height: 9em;
+}
+
.template {
display: none;
}
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()
})