Server IP : 184.154.167.98 / Your IP : 13.58.105.80 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/tampico1900/apps/activity/js/ |
Upload File : |
$(document).ready(function() { function saveSettings() { OC.msg.startSaving('#activity_notifications_msg'); var post = $('#activity_notifications').serialize(); $.post(OC.generateUrl('/apps/activity/settings'), post, function(response) { OC.msg.finishedSuccess('#activity_notifications_msg', response.data.message); }); } var $activityNotifications = $('#activity_notifications'); $activityNotifications.find('input[type=checkbox]').change(saveSettings); $activityNotifications.find('select').change(saveSettings); $activityNotifications.find('.activity_select_group').click(function() { var $selectGroup = '#activity_notifications .' + $(this).attr('data-select-group'); var $filteredBoxes = $($selectGroup).not(':disabled'); var $checkedBoxes = $filteredBoxes.filter(':checked').length; $filteredBoxes.prop('checked', true); if ($checkedBoxes === $filteredBoxes.filter(':checked').length) { // All values were already selected, so invert it $filteredBoxes.prop('checked', false); } saveSettings(); }); });