aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-07-16 11:42:54 +0200
committerMario Vavti <mario@mariovavti.com>2021-07-16 11:42:54 +0200
commit62606bf006c83c7a7ad44121feebedd81cd43a79 (patch)
treeaf183e8d2f17e855e4fa0e37bf5649dd07d92ec7
parentf5669c993545ab93e97e55e9f0ea1b2dcffe3573 (diff)
downloadvolse-hubzilla-62606bf006c83c7a7ad44121feebedd81cd43a79.tar.gz
volse-hubzilla-62606bf006c83c7a7ad44121feebedd81cd43a79.tar.bz2
volse-hubzilla-62606bf006c83c7a7ad44121feebedd81cd43a79.zip
photo upload: always show the textarea so that text and tags can be added even if no status post is sent
-rw-r--r--view/js/mod_photos.js13
-rw-r--r--view/tpl/photos_upload.tpl9
2 files changed, 3 insertions, 19 deletions
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 @@
<input id="photos-upload-choose" type="file" name="userfile" />
</div -->
{{include file="field_input.tpl" field=$caption}}
- {{include file="field_checkbox.tpl" field=$visible}}
- <div id="body-textarea">
{{include file="field_textarea.tpl" field=$body}}
- </div>
+ {{include file="field_checkbox.tpl" field=$visible}}
<div class="pull-right btn-group">
<div class="btn-group">
{{if $lockstate}}
@@ -40,10 +38,9 @@
{{if $uploader}}
{{include file="field_input.tpl" field=$caption}}
- {{include file="field_checkbox.tpl" field=$visible}}
- <div id="body-textarea">
{{include file="field_textarea.tpl" field=$body}}
- </div>
+ {{include file="field_checkbox.tpl" field=$visible}}
+
<div id="photos-upload-perms" class="btn-group pull-right">
{{if $lockstate}}
<button class="btn btn-outline-secondary btn-sm" data-toggle="modal" data-target="#aclModal" onclick="return false;">