Changeset View
Changeset View
Standalone View
Standalone View
plugins/kolab_activesync/kolab_activesync.js
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | else if (rcmail.env.action != 'edit-folder') { | ||||
$('input.subscription').change(function(e) { | $('input.subscription').change(function(e) { | ||||
if (!this.checked) | if (!this.checked) | ||||
$('#'+this.id+'_alarm').prop('checked', false); | $('#'+this.id+'_alarm').prop('checked', false); | ||||
}); | }); | ||||
var fn = function(elem) { | var fn = function(elem) { | ||||
var classname = elem.className.split(' ')[0], | var classname = elem.className.split(' ')[0], | ||||
list = $(elem).closest('table').find('input.' + classname), | list = $(elem).closest('table').find('input.' + classname).not('[disabled]'), | ||||
check = list.not(':checked').length > 0; | check = list.not(':checked').length > 0; | ||||
list.prop('checked', check).change(); | list.prop('checked', check).change(); | ||||
}; | }; | ||||
$('th.subscription,th.alarm').click(function() { fn(this); }) | $('th.subscription,th.alarm').click(function() { fn(this); }) | ||||
.keydown(function(e) { if (e.which == 13 || e.which == 32) fn(this); }); | .keydown(function(e) { if (e.which == 13 || e.which == 32) fn(this); }); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |