chart.js
6 days ago
check-mail-jsPdf.js
6 days ago
check_mail_push.js
6 days ago
check_mail_wizard.js
6 days ago
check_mail_wizard.min.js
6 days ago
checkemail.js
6 days ago
checkemail.min.js
6 days ago
checkmail-dashboard-chart.js
6 days ago
checkmail-dashboard-chart.min.js
6 days ago
checkmail-sw.js
6 days ago
ck_mail-newsletter-script.js
6 days ago
ck_mail-newsletter-script.min.js
6 days ago
export-logs.js
6 days ago
export-logs.min.js
6 days ago
feedback.js
6 days ago
feedback.min.js
6 days ago
firebase-app.js
6 days ago
firebase-messaging.js
6 days ago
support-settings.js
6 days ago
support-settings.min.js
6 days ago
view-logs.js
6 days ago
view-logs.min.js
6 days ago
view-logs.js
93 lines
| 1 | |
| 2 | ( function( $ ) { |
| 3 | |
| 4 | $( document ).ready(function() { |
| 5 | $( '#search_id-search-date-input' ).datepicker({ |
| 6 | changeMonth: true, |
| 7 | changeYear: true, |
| 8 | dateFormat: 'yy-mm-dd' |
| 9 | }); |
| 10 | |
| 11 | $( document ).on('click', '#thickbox-footer-close', function( event ) { |
| 12 | event.preventDefault(); |
| 13 | tb_remove(); |
| 14 | }); |
| 15 | |
| 16 | // Sent status tool tip. |
| 17 | $( ".el-help" ).tooltip( { |
| 18 | content: function() { return $( this ).prop( "title" ); }, |
| 19 | position: { |
| 20 | my: "center top", |
| 21 | at: "center bottom+10", |
| 22 | collision: "flipfit" |
| 23 | }, |
| 24 | hide: { |
| 25 | duration: 100 |
| 26 | }, |
| 27 | show: { |
| 28 | duration: 100 |
| 29 | } |
| 30 | }); |
| 31 | }); |
| 32 | |
| 33 | var tabsInsertedEvent = 'tabs_elem_inserted'; |
| 34 | |
| 35 | insertionQ( '#tabs' ).every(function ( element ) { |
| 36 | $( element ).trigger( tabsInsertedEvent ) |
| 37 | }); |
| 38 | |
| 39 | $( document ).on( tabsInsertedEvent, function() { |
| 40 | var activeTabIndex = parseInt( $( "#tabs ul" ).data( "active-tab" ) ); |
| 41 | |
| 42 | activeTabIndex = isNaN( activeTabIndex ) ? 1 : activeTabIndex; |
| 43 | $( "#tabs" ).tabs( { active: activeTabIndex } ); |
| 44 | } ); |
| 45 | |
| 46 | })( jQuery ); |
| 47 | |
| 48 | function showPrint() { |
| 49 | document.getElementById('check_mail_print_button').style.display = ''; |
| 50 | } |
| 51 | function hidePrint() { |
| 52 | document.getElementById('check_mail_print_button').style.display = 'none'; |
| 53 | } |
| 54 | function printLog() |
| 55 | { |
| 56 | document.getElementById('TB_ajaxWindowTitle').innerHTML = "<h3>Email Content</h3>"; |
| 57 | document.getElementById('TB_closeWindowButton').style.display = "none"; |
| 58 | document.querySelectorAll('.check_mail_non-printable').forEach(function(el) { |
| 59 | el.style.display = 'none'; |
| 60 | }); |
| 61 | |
| 62 | var divToPrint=document.getElementById('TB_window'); |
| 63 | |
| 64 | email_log_table = document.getElementById('email_log_table') |
| 65 | |
| 66 | email_log_table.querySelectorAll('tr').forEach(function(tr) { |
| 67 | tr.style.background = '#eee'; |
| 68 | }); |
| 69 | |
| 70 | |
| 71 | email_log_table.style.border = "1px solid #000" |
| 72 | email_log_table.style.borderWidth = "1px"; |
| 73 | email_log_table.style.borderColor = "#000"; |
| 74 | email_log_table.style.borderStyle = "solid"; |
| 75 | |
| 76 | tabs = document.getElementById('tabs') |
| 77 | |
| 78 | tabs.style.border = "1px solid #000" |
| 79 | tabs.style.marginTop = "30px"; |
| 80 | tabs.style.height = "200px"; |
| 81 | tabs.style.padding = "20px 10px 20px 20px";; |
| 82 | tabs.style.borderWidth = "1px"; |
| 83 | tabs.style.borderColor = "#000"; |
| 84 | tabs.style.borderStyle = "solid"; |
| 85 | |
| 86 | var pdf = new jsPDF('p', 'pt'); |
| 87 | pdf.canvas.height = 72 * 11; |
| 88 | pdf.canvas.width = 72 * 8.5; |
| 89 | |
| 90 | pdf.fromHTML('<html><body onload="window.print()">'+divToPrint.innerHTML+'</body></html>'); |
| 91 | jQuery('.tb-close-icon').click(); |
| 92 | } |
| 93 |