aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorAlexandre Hannud Abdo <abdo@member.fsf.org>2015-05-22 10:15:29 -0300
committerAlexandre Hannud Abdo <abdo@member.fsf.org>2015-05-22 10:15:29 -0300
commitd37c51ef2ea342a13e91687487fdf01881c98f95 (patch)
treeda782df609ec7e0f25ec148d0a54d84d2aa544b1 /mod
parent81d94dae2c5f986a5d5784f66b378d6320de2c07 (diff)
downloadvolse-hubzilla-d37c51ef2ea342a13e91687487fdf01881c98f95.tar.gz
volse-hubzilla-d37c51ef2ea342a13e91687487fdf01881c98f95.tar.bz2
volse-hubzilla-d37c51ef2ea342a13e91687487fdf01881c98f95.zip
Fix accepting contacts by using correct jquery calls.
Not sure what the operation on disabled is supposed to do, but it also seemed to requier prop instead of attr. See for reference: http://api.jquery.com/prop/ """ The checked attribute value does not change with the state of the checkbox, while the checked property does. """
Diffstat (limited to 'mod')
-rw-r--r--mod/connedit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/connedit.php b/mod/connedit.php
index 8ae1707ae..cb524547c 100644
--- a/mod/connedit.php
+++ b/mod/connedit.php
@@ -345,12 +345,12 @@ function connedit_content(&$a) {
$o .= "<script>function connectDefaultShare() {
\$('.abook-edit-me').each(function() {
if(! $(this).is(':disabled'))
- $(this).removeAttr('checked');
+ $(this).prop('checked', false);
});\n\n";
$perms = get_perms();
foreach($perms as $p => $v) {
if($my_perms & $v[1]) {
- $o .= "\$('#me_id_perms_" . $p . "').attr('checked','checked'); \n";
+ $o .= "\$('#me_id_perms_" . $p . "').prop('checked', true); \n";
}
}
$o .= " }\n</script>\n";