CPE_learningsite
This repository has no backups
This repository's network speed is throttled to 100KB/sec
Upgrade your account to fix these warnings, or use backups.vc for automated backups
4cd176a439ea516368a5d8827cdf8726027259a6
CPE_learningsite / CPE / CPE.App / CPE.App.Web / static / js / index / sessiondetails.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
$(document).ready(function () { $('#sessionDetailsTable').dataTable({ "sPaginationType": "full_numbers", "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]], "iDisplayLength": -1, "sDom": 'Tfrtlip', "oTableTools": { "sSwfPath": "/static/swf/copy.csv.xls.swf", "aButtons": ["copy", "csv"] }, "initComplete": function() { $('.overrideCert-icon').click(function() { var mpsk = $(this).data('mpsk'); var msk = $(this).data('msk'); var creds = $(this).data('creds'); if (confirm('Are you sure you want to update the Poll Response to 100%? This action cannot be reversed. If the user logged in to the Webcast using a magic ticket, they are not eligible for a certificate.')) { $.post("access/OverridePoll", { mpsk: mpsk, msk: msk, creds: creds }, function (data) { if (data) { alert("Certificate marked as Earned. You should now see the option to Send Certificate unless the user logged in to the Webcast using hte Magic Ticket."); window.location.reload(true); } else { alert("Problem Overriding Poll Status. Please contact Customer Support. If the user logged in to the Webcast using a magic ticket, they are not eligible for a certificate."); } }); }; }); } }); $('#sessionReportTable').dataTable({ "sPaginationType": "full_numbers", "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]], "iDisplayLength": -1, "sDom": 'Tfrtlip', "oTableTools": { "sSwfPath": "/static/swf/copy.csv.xls.swf", "aButtons": ["copy", "csv"] } }); $('#btnCloseUserSessions').click(function () { var key = $(this).attr('meetingSessionKey'); $.ajax({ url: "/static/services/engagement/service.asmx/CloseOpenUserSessions", data: { meetingSessionKey: key }, dataType: "xml", type: "POST", success: function (data, textStatus, jqXhr) { if ($(data).find('boolean').text() === "true") { location.reload(); } else { alert("Problem closing active user sessions."); } }, error: function (jqXhr, textStatus, errorThrown) { alert("Request failed: " + textStatus); } }); }); $('#certificateReportTable').dataTable({ "sPaginationType": "full_numbers", "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]], "iDisplayLength": -1, "sDom": 'Tfrtlip', "oTableTools": { "sSwfPath": "/static/swf/copy.csv.xls.swf", "aButtons": ["copy", "csv"] }, "initComplete": function() { $('.sendCert-icon').click(function() { var email = $(this).data('email'); var a = $(this).data('msco'); var b = $(this).data('pdate'); var c = $(this).data('ticket'); var emailBody = 'Thank you for attending our Live Webcast!' + '\r\n' + '\r\n' + 'Please follow the link in this email to download your Certificate of Attendance. We recommend that you print a copy of the Certificate for your records.' + '\r\n' + '\r\n' + 'To register for another CPE Inc. program from our wide selection of Live Webcasts, Self-Study Webcasts, Seminars and Conferences, please visit us online or call 1-800-544-1114.' + '\r\n' + '\r\n' + 'http://api.cpeonlinewebcasts.com/Certificate?a=' + a + '&b=' + b + '&c=' + c; emailBody = encodeURIComponent(emailBody); var link = 'mailto:' + email + '?subject=' + escape('Your Certificate of Attendance from CPE, Inc.') + '&body=' + emailBody; win = window.open(link); setTimeout(function() { win.close() }, 500); return true; }); } }); }); |
Commits for CPE_learningsiteCPE/CPE.App/CPE.App.Web/static/js/index/sessiondetails.js
Revision | Author | Commited | Message |
---|---|---|---|
4cd176 ... | v.shishlov | Fri 27 Aug, 2021 14:33:17 +0000 | initial commit |