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 / coursedetails.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 |
$(document).ready(function () { $('#PurchasedCoursesTable').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('curl'); var b = $(this).data('cdate'); var c = $(this).data('ticket'); var emailBody = 'Thank you for purchasing our Self-Study Webcast, and congratulations on successfully completing the final examination!' + '\r\n' + '\r\n' + 'Please follow the link in this email to download your Certificate of Completion. 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 Self-Study and Live 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 completion from CPE Inc.') + '&body=' + emailBody; win = window.open(link); setTimeout(function() { win.close() }, 500); return true; }); $('.revokeAccess-icon').click(function () { var learnerName = $(this).data('learnername').split(' '); var blockedCourse = { firstName: learnerName[0], lastName: learnerName[1], purchaseDate: $(this).data('purchasedate'), email: $(this).data('email'), ticket: $(this).data('ticket'), contentUrl: $(this).data('curl') }; $.post("Access/Revoke", blockedCourse, function () { alert("Access Revoked."); window.location.reload(true); }); }); $('.restoreAccess-icon').click(function () { var learnerName = $(this).data('learnername').split(' '); var blockedCourse = { firstName: learnerName[0], lastName: learnerName[1], purchaseDate: $(this).data('purchasedate'), email: $(this).data('email'), ticket: $(this).data('ticket'), contentUrl: $(this).data('curl') }; $.post("Access/Restore", blockedCourse, function () { alert("Access Restored"); window.location.reload(true); }); }); $('.overrideCert-icon').click(function () { var learnerName = $(this).data('learnername').split(' '); var purchasedCourse = { firstName: learnerName[0], lastName: learnerName[1], purchaseDate: $(this).data('purchasedate'), email: $(this).data('email'), ticket: $(this).data('ticket'), contentUrl: $(this).data('curl') }; if (confirm('Are you sure you want to mark this course as Passed? This action cannot be reversed.')) { $.post("Access/OverrideCert", purchasedCourse, function() { alert("Course marked as Passed. You should now see the option to Send Certificate. If not, try refreshing the page."); window.location.reload(true); }); } }); } }); }); |
Commits for CPE_learningsiteCPE/CPE.App/CPE.App.Web/static/js/index/coursedetails.js
Revision | Author | Commited | Message |
---|---|---|---|
4cd176 ... | v.shishlov | Fri 27 Aug, 2021 14:33:17 +0000 | initial commit |