aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_photos.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-08-13 22:17:47 +0200
committerMario Vavti <mario@mariovavti.com>2016-08-13 22:17:47 +0200
commit1b90e851f9e53924923d7110591caf50085236c2 (patch)
treea5f328705a1f0d77c01ea53006cb7d8d9e6e8bff /view/js/mod_photos.js
parent165f442d70d5ef3e025f72ba38f5a423d1245736 (diff)
downloadvolse-hubzilla-1b90e851f9e53924923d7110591caf50085236c2.tar.gz
volse-hubzilla-1b90e851f9e53924923d7110591caf50085236c2.tar.bz2
volse-hubzilla-1b90e851f9e53924923d7110591caf50085236c2.zip
fix #480, enable bbcode autocomplete for photo comments and remove some redundant javascript
Diffstat (limited to 'view/js/mod_photos.js')
-rw-r--r--view/js/mod_photos.js16
1 files changed, 1 insertions, 15 deletions
diff --git a/view/js/mod_photos.js b/view/js/mod_photos.js
index e3df3ca68..cbc1d8fa1 100644
--- a/view/js/mod_photos.js
+++ b/view/js/mod_photos.js
@@ -7,21 +7,7 @@ $(document).ready(function() {
$("#photo-edit-newtag").val('@' + data.name);
});
- $('#id_body').bbco_autocomplete('bbcode');
-
- $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
- var selstr;
- $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
- selstr = $(this).text();
- $('#jot-perms-icon').removeClass('fa-unlock').addClass('fa-lock');
- $('#jot-public').hide();
- });
- if(selstr === null) {
- $('#jot-perms-icon').removeClass('fa-lock').addClass('fa-unlock');
- $('#jot-public').show();
- }
- }).trigger('change');
-
+ $('textarea').bbco_autocomplete('bbcode');
showHideBodyTextarea();
});