diff options
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/mod_settings.js | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js index 0f45e0d16..4ff702b22 100644 --- a/view/js/mod_settings.js +++ b/view/js/mod_settings.js @@ -3,7 +3,7 @@ */ $(document).ready(function() { - $('form').areYouSure({'addRemoveFieldsMarksDirty':true, 'message': aStr['leavethispage'] }); // Warn user about unsaved settings + $('#settings-form').areYouSure({'addRemoveFieldsMarksDirty':true, 'message': aStr['leavethispage'] }); // Warn user about unsaved settings $('.token-mirror').html($('#id_token').val()); $('#id_token').keyup( function() { $('.token-mirror').html($('#id_token').val()); }); @@ -15,19 +15,6 @@ $(document).ready(function() { else $('#advanced-perm').hide(); }); - - $('#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'); }); /** |