diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-08-13 22:17:47 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-08-13 22:17:47 +0200 |
commit | 1b90e851f9e53924923d7110591caf50085236c2 (patch) | |
tree | a5f328705a1f0d77c01ea53006cb7d8d9e6e8bff /view/js/mod_photos.js | |
parent | 165f442d70d5ef3e025f72ba38f5a423d1245736 (diff) | |
download | volse-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.js | 16 |
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(); }); |