|
@ -133,12 +133,15 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
function previewPhoto(event) { |
|
|
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(){ |
|
|
$(function(){ |
|
|
|
|
|
|
|
|
var userHasSetCategory = false; |
|
|
var userHasSetCategory = false; |
|
|
|
|
|
$("#photo_preview").hide(); |
|
|
|
|
|
|
|
|
$("#note_content").on('change keyup', function(e){ |
|
|
$("#note_content").on('change keyup', function(e){ |
|
|
var text = $("#note_content").val(); |
|
|
var text = $("#note_content").val(); |
|
|