another try to avoid dubble photo deletion. allow to set a photo caption and simple status body (if create status post is enabled) on upload

This commit is contained in:
Mario Vavti
2015-10-24 21:44:25 +02:00
parent 3432771150
commit ab8b4d5c36
6 changed files with 55 additions and 26 deletions

View File

@@ -6,10 +6,9 @@
var ispublic = aStr.everybody;
$(document).ready(function() {
$(document).ready(function() {
$("#photo-edit-newtag").contact_autocomplete(baseurl + '/acl', 'p', false, function(data) {
$("#photo-edit-newtag").val('@' + data.name);
});
$("#photo-edit-newtag").contact_autocomplete(baseurl + '/acl', 'p', false, function(data) {
$("#photo-edit-newtag").val('@' + data.name);
});
$('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
@@ -24,4 +23,14 @@ $(document).ready(function() {
$('#jot-public').show();
}
}).trigger('change');
});
showHideBodyTextarea();
});
function showHideBodyTextarea() {
if( $('#id_visible').is(':checked'))
$('#body-textarea').slideDown();
else
$('#body-textarea').slideUp();
}