aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-08-16 07:41:06 +0200
committerMario Vavti <mario@mariovavti.com>2016-08-16 07:41:06 +0200
commit86d2daf473f026ce5fde9d2a7fa893ba365ce58f (patch)
tree47100ce439e2f4321e4808cc665144725386303a /view
parent7fc254a81c5648653a03a7a631195d7c5212dcba (diff)
downloadvolse-hubzilla-86d2daf473f026ce5fde9d2a7fa893ba365ce58f.tar.gz
volse-hubzilla-86d2daf473f026ce5fde9d2a7fa893ba365ce58f.tar.bz2
volse-hubzilla-86d2daf473f026ce5fde9d2a7fa893ba365ce58f.zip
only check settings-form for dirty state and remove redundant javascript
Diffstat (limited to 'view')
-rw-r--r--view/js/mod_settings.js15
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');
});
/**