diff options
author | Aaron Parecki <aaron@parecki.com> | 2016-10-19 11:23:34 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2016-10-19 11:23:34 -0700 |
commit | 84e0aa6237060eeb6bb6ecc7cb39a01c9ab8d894 (patch) | |
tree | 7c97356891173b91c9e9366915b2868898601786 /views/new-post.php | |
parent | c1972ee08ca9c1f274c0cb575e3dc24dd1ce5b95 (diff) |
fix replacing photo upload form with uploaded photo
Diffstat (limited to 'views/new-post.php')
-rw-r--r-- | views/new-post.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/new-post.php b/views/new-post.php index 6458446..3321c25 100644 --- a/views/new-post.php +++ b/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"); |