Browse Source
fix replacing photo upload form with uploaded photo
pull/56/merge
Aaron Parecki
8 years ago
No known key found for this signature in database
GPG Key ID: 3745E500B4FF7CB1
1 changed files with
1 additions and
1 deletions
-
views/new-post.php
|
|
@ -183,7 +183,7 @@ function restoreNoteState() { |
|
|
|
|
|
|
|
function replacePhotoWithPhotoURL(url) { |
|
|
|
$("#note_photo").after('<input type="url" name="note_photo_url[]" value="" class="note_photo_url form-control">'); |
|
|
|
$("#note_photo_url").val(url); |
|
|
|
$(".note_photo_url").val(url); |
|
|
|
$("#note_photo").remove(); |
|
|
|
$("#photo_preview").attr("src", url); |
|
|
|
$("#photo_preview_container").removeClass("hidden"); |
|
|
|