aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/acl.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-08-21 15:43:03 +0200
committerMario Vavti <mario@mariovavti.com>2016-08-21 15:43:03 +0200
commit4f62d7a78f63e4bae136f52d70d0af906d997b78 (patch)
tree9b66c3bd585bbaccdb44ee0e1a91050c21aeed6e /view/js/acl.js
parente4244c0cac301c63e5f69cde24c889e15500d89e (diff)
downloadvolse-hubzilla-4f62d7a78f63e4bae136f52d70d0af906d997b78.tar.gz
volse-hubzilla-4f62d7a78f63e4bae136f52d70d0af906d997b78.tar.bz2
volse-hubzilla-4f62d7a78f63e4bae136f52d70d0af906d997b78.zip
move jotnets to jot and some cleanup (mostly whitespace)
Diffstat (limited to 'view/js/acl.js')
-rw-r--r--view/js/acl.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/view/js/acl.js b/view/js/acl.js
index eb7b7f523..c1685e137 100644
--- a/view/js/acl.js
+++ b/view/js/acl.js
@@ -100,13 +100,6 @@ ACL.prototype.on_submit = function() {
$(that.deny_cid).each(function(i,v) {
that.form_id.append("<input class='acl-field' type='hidden' name='contact_deny[]' value='"+v+"'>");
});
-
- var formfields = $('.profile-jot-net input').serializeArray();
-
- $.each(formfields, function(i, field) {
- that.form_id.append("<input class='acl-field' type='hidden' name='"+field.name+"' value='"+field.value+"'>");
- });
-
};
ACL.prototype.search = function() {
@@ -283,6 +276,7 @@ ACL.prototype.update_view = function(value) {
/* jot acl */
$('#jot-perms-icon, #dialog-perms-icon').removeClass('fa-lock').addClass('fa-unlock');
+ $('#dbtn-jotnets').show();
$('.profile-jot-net input').attr('disabled', false);
}
@@ -295,6 +289,7 @@ ACL.prototype.update_view = function(value) {
/* jot acl */
$('#jot-perms-icon, #dialog-perms-icon').removeClass('fa-unlock').addClass('fa-lock');
+ $('#dbtn-jotnets').hide();
$('.profile-jot-net input').attr('disabled', 'disabled');
}
@@ -306,6 +301,7 @@ ACL.prototype.update_view = function(value) {
/* jot acl */
$('#jot-perms-icon, #dialog-perms-icon').removeClass('fa-unlock').addClass('fa-lock');
+ $('#dbtn-jotnets').hide();
$('.profile-jot-net input').attr('disabled', 'disabled');
}
@@ -317,10 +313,12 @@ ACL.prototype.update_view = function(value) {
/* jot acl */
if(that.allow_gid.length === 0 && that.allow_cid.length === 0 && that.deny_gid.length === 0 && that.deny_cid.length === 0 && value === 'custom') {
$('#jot-perms-icon, #dialog-perms-icon').removeClass('fa-lock').addClass('fa-unlock');
+ $('#dbtn-jotnets').show();
$('.profile-jot-net input').attr('disabled', false);
}
else {
$('#jot-perms-icon, #dialog-perms-icon').removeClass('fa-unlock').addClass('fa-lock');
+ $('#dbtn-jotnets').hide();
$('.profile-jot-net input').attr('disabled', 'disabled');
}
}