PluginProbe
ShiftController Employee Shift Scheduling / 4.9.95
ShiftController Employee Shift Scheduling v4.9.95
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
shiftcontroller / sh4 / notifications / assets / js / skip-notifications.js

skip-notifications.js in ShiftController Employee Shift Scheduling 4.9.95, at sh4/notifications/assets/js/skip-notifications.js

29 lines 644 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function($) {
2
3 jQuery(document).on( 'click', '.sh4-skip-notifications input[type=checkbox]', function(event)
4 {
5 var $this = jQuery(this);
6 var $form = $this.closest('form');
7 var action = $form.attr('action');
8
9 hc2_set_loader( $form );
10
11 jQuery.ajax({
12 type: 'POST',
13 url: action,
14 data: $form.serialize(),
15 success: function(data, textStatus){
16 hc2_unset_loader( $form );
17 }
18 })
19 .fail( function(jqXHR, textStatus, errorThrown){
20 hc2_unset_loader( $form );
21 alert( 'Ajax Error' );
22 console.log( 'Ajax Error: ' + errorThrown + "\n" + jqXHR.responseText );
23 location.reload();
24 })
25 ;
26 });
27
28 }());
29