diff options
Diffstat (limited to 'view/js/mod_settings.js')
-rw-r--r-- | view/js/mod_settings.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js index e28a18b9f..0f45e0d16 100644 --- a/view/js/mod_settings.js +++ b/view/js/mod_settings.js @@ -2,12 +2,12 @@ * JavaScript used by mod/settings */ -// is this used anywhere? -var ispublic = aStr.everybody; - $(document).ready(function() { $('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()); }); + $("#id_permissions_role").change(function() { var role = $("#id_permissions_role").val(); if(role == 'custom') @@ -20,11 +20,11 @@ $(document).ready(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('icon-unlock').addClass('icon-lock'); + $('#jot-perms-icon').removeClass('fa-unlock').addClass('fa-lock'); $('#jot-public').hide(); }); if(selstr === null) { - $('#jot-perms-icon').removeClass('icon-lock').addClass('icon-unlock'); + $('#jot-perms-icon').removeClass('fa-lock').addClass('fa-unlock'); $('#jot-public').show(); } }).trigger('change'); @@ -127,4 +127,4 @@ function channel_privacy_macro(n) { $('#id_profile_in_directory_onoff .off').addClass('hidden'); $('#id_profile_in_directory').val(1); } -}
\ No newline at end of file +} |