diff --git a/views/new-post.php b/views/new-post.php
index 8e9c692..6ae4a17 100644
--- a/views/new-post.php
+++ b/views/new-post.php
@@ -28,9 +28,11 @@
-
+
-
+
+
+
@@ -139,15 +141,15 @@ $(function(){
var userHasSetCategory = false;
- $("#photo_preview_container").hide();
+ $("#photo_preview_container").addClass("hidden");
$("#note_photo").on("change", function(e){
- $("#photo_preview_container").show();
+ $("#photo_preview_container").removeClass("hidden");
$("#photo_preview").attr("src", URL.createObjectURL(e.target.files[0]) );
});
$("#remove_photo").on("click", function(){
$("#note_photo").val("");
$("#photo_preview").attr("src", "" );
- $("#photo_preview_container").hide();
+ $("#photo_preview_container").addClass("hidden");
});
$("#note_content").on('change keyup', function(e){