aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_photos.js
blob: cbc1d8fa1dd4d721d2e8975fbe1a91e0d17eae68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
 * JavaScript used by mod/photos
 */
$(document).ready(function() {

	$("#photo-edit-newtag").contact_autocomplete(baseurl + '/acl', 'a', false, function(data) {
		$("#photo-edit-newtag").val('@' + data.name);
	});

	$('textarea').bbco_autocomplete('bbcode');
	showHideBodyTextarea();

});

function showHideBodyTextarea() {
	if( $('#id_visible').is(':checked'))
		$('#body-textarea').slideDown();
	else
		$('#body-textarea').slideUp();
}