PluginProbe ʕ •ᴥ•ʔ
Appointment Booking Plugin – LatePoint | Calendar & Scheduling for WordPress / 5.2.3
Appointment Booking Plugin – LatePoint | Calendar & Scheduling for WordPress v5.2.3
5.6.11 5.6.10 5.6.9 5.6.8 5.6.7 5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.2 5.5.1 5.5.0 5.4.2 trunk 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.1.91 5.1.92 5.1.93 5.1.94 5.2.0 5.2.1 5.2.10 5.2.11 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.0 5.3.1 5.3.2 5.4.0 5.4.1
latepoint / lib / assets / javascripts / bin / notifications.js
latepoint / lib / assets / javascripts / bin Last commit date
admin 11 months ago front 11 months ago actions.js 11 months ago latecheckbox.js 1 year ago lateselect.js 1 year ago notifications.js 1 year ago shared.js 1 year ago time.js 1 year ago
notifications.js
19 lines
1 function latepoint_add_notification(message, message_type = 'success'){
2 var wrapper = jQuery('body').find('.os-notifications');
3 if(!wrapper.length){
4 jQuery('body').append('<div class="os-notifications"></div>');
5 wrapper = jQuery('body').find('.os-notifications');
6 }
7 if(wrapper.find('.item').length > 0) wrapper.find('.item:first-child').remove();
8 wrapper.append('<div class="item item-type-'+ message_type +'">' + message + '<span class="os-notification-close"><i class="latepoint-icon latepoint-icon-x"></i></span></div>');
9 }
10
11 function latepoint_add_lightbox_notification(message, message_type = 'success'){
12 var wrapper = jQuery('.latepoint-lightbox-content').find('.os-notifications');
13 if(!wrapper.length){
14 jQuery('.latepoint-lightbox-content').prepend('<div class="os-notifications"></div>');
15 wrapper = jQuery('.latepoint-lightbox-content').find('.os-notifications');
16 }
17 if(wrapper.find('.item').length > 0) wrapper.find('.item:first-child').remove();
18 wrapper.append('<div class="item item-type-'+ message_type +'">' + message + '<span class="os-notification-close"><i class="latepoint-icon latepoint-icon-x"></i></span></div>');
19 }