1 function sendTestEmail(user_id, authtoken) {
2 sendTestNotification(user_id, 'au.email.test', authtoken);
5 function sendTestSMS(user_id, authtoken) {
6 sendTestNotification(user_id, 'au.sms_text.test', authtoken);
9 function sendTestNotification(user_id, hook, authtoken) {
16 new OpenSRF.ClientSession('open-ils.actor').request({
17 method: 'open-ils.actor.event.test_notification',
18 params: [authtoken, args],
19 oncomplete: function(r) {
22 var banner = document.getElementById('test_notification_banner');
23 banner.style.display = 'table-row';