From 62606bf006c83c7a7ad44121feebedd81cd43a79 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 16 Jul 2021 11:42:54 +0200 Subject: photo upload: always show the textarea so that text and tags can be added even if no status post is sent --- view/js/mod_photos.js | 13 ------------- view/tpl/photos_upload.tpl | 9 +++------ 2 files changed, 3 insertions(+), 19 deletions(-) (limited to 'view') diff --git a/view/js/mod_photos.js b/view/js/mod_photos.js index 41b8ed560..1ce410a1b 100644 --- a/view/js/mod_photos.js +++ b/view/js/mod_photos.js @@ -8,24 +8,11 @@ $(document).ready(function() { UploadInit(); } - //$("#photo-edit-newtag").contact_autocomplete(baseurl + '/acl', 'a', false, function(data) { - //$("#photo-edit-newtag").val('@' + data.name); - //}); - $(".comment-edit-form textarea").editor_autocomplete(baseurl+"/acl?f=&n=1"); $('textarea').editor_autocomplete(baseurl+"/acl"); $('textarea').bbco_autocomplete('bbcode'); - showHideBodyTextarea(); - }); -function showHideBodyTextarea() { - if( $('#id_visible').is(':checked')) - $('#body-textarea').slideDown(); - else - $('#body-textarea').slideUp(); -} - // initialize function UploadInit() { diff --git a/view/tpl/photos_upload.tpl b/view/tpl/photos_upload.tpl index ea173049b..0565a0a35 100644 --- a/view/tpl/photos_upload.tpl +++ b/view/tpl/photos_upload.tpl @@ -20,10 +20,8 @@ {{include file="field_input.tpl" field=$caption}} - {{include file="field_checkbox.tpl" field=$visible}} -
{{include file="field_textarea.tpl" field=$body}} -
+ {{include file="field_checkbox.tpl" field=$visible}}
{{if $lockstate}} @@ -40,10 +38,9 @@ {{if $uploader}} {{include file="field_input.tpl" field=$caption}} - {{include file="field_checkbox.tpl" field=$visible}} -
{{include file="field_textarea.tpl" field=$body}} -
+ {{include file="field_checkbox.tpl" field=$visible}} +
{{if $lockstate}}