|
|
@ -133,12 +133,15 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
function previewPhoto(event) { |
|
|
|
document.getElementById('photo_preview').src = URL.createObjectURL(event.target.files[0]); |
|
|
|
$("#photo_preview") |
|
|
|
.show() |
|
|
|
.attr("src", URL.createObjectURL(event.target.files[0]) ); |
|
|
|
} |
|
|
|
|
|
|
|
$(function(){ |
|
|
|
|
|
|
|
var userHasSetCategory = false; |
|
|
|
$("#photo_preview").hide(); |
|
|
|
|
|
|
|
$("#note_content").on('change keyup', function(e){ |
|
|
|
var text = $("#note_content").val(); |
|
|
|