Server IP : 192.64.118.117 / Your IP : 3.144.216.188 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/www/wp-content/plugins/e-signature/assets/js/ |
Upload File : |
(function ($) { "use strict"; var config = { '.chosen-select': {}, '.chosen-select-deselect': {allow_single_deselect: true}, '.chosen-select-no-single': {disable_search_threshold: 10}, '.chosen-select-no-results': {no_results_text: 'Oops, nothing found!'}, '.chosen-select-width': {width: "95%"} } for (var selector in config) { $(selector).chosen(config[selector]); } $(".tooltip").hover(function () { $('.tooltip span').append("<img class=\"callout\" src=\"" + esig_tool_tip_script.imgurl + "\">"); }); $(".tooltip").mouseout(function () { $('.callout').remove(); }); // select2 form style . $(".esig-select2").select2({ allowClear: true }); // esig document search $("#esig_document_search").select2({ maximumInputLength: 10, }); // disabling third party alert msg . $('.updated').hide(); //updater popup start here $("#esig-update-popup").dialog({ dialogClass: 'esig-dialog', height: 500, width: 600, modal: true, }); if ($('#esig-auto-check').attr('checked')) { $('#esig-auto-update-check').addClass('auto-update-checked'); } //remind check $('#esig-remind-check').on('change', function () { if ($('#esig-remind-check').attr('checked')) { $('#esig-auto-update-check').removeClass('auto-update-checked'); $('#esig-remind-me-check').addClass('auto-update-checked'); } }); $('#esig-auto-check').on('change', function () { if ($('#esig-auto-check').attr('checked')) { $('#esig-auto-update-check').addClass('auto-update-checked'); $('#esig-remind-me-check').removeClass('auto-update-checked'); } }); $("#esig-secondary-btn").click(function () { var remind = $('[name="esig-auto-update"]:checked').val(); if (remind == "2") { jQuery.post(esigAjax.ajaxurl, {action: "esig_update_remind_settings"}); $('#esig-update-popup').dialog("close"); } else { alert('Hey there... looks like you are moving pretty fast. You need to first select the option "Remind me everytime an update is available" checkbox and then select "IM TOO BUSY TODAY"'); return false; } }); $("#esig-core-remind-btn").click(function () { jQuery.post(esigAjax.ajaxurl, {action: "esig_update_remind_settings"}); $('#esig-update-popup').dialog("close"); }); $("#esig-primary-dgr-btn").click(function () { var remind = $('[name="esig-auto-update"]:checked').val(); $(this).html('Loading....'); if (remind == "1") { jQuery.ajax({ type: "POST", url: esigAjax.ajaxurl + "?action=esig_update_auto_settings", success: function (data, status, jqXHR) { window.location = "admin.php?page=esign-addons&tab=enable&esig-update=success"; $('#esig-update-popup').dialog("close"); }, error: function (xhr, status, error) { // $('.esig-terms-modal-lg .modal-body').html('<h1>No internet connection</h1>'); } }); /*jQuery.post(esigAjax.ajaxurl,{ action:"esig_update_auto_settings"},function( data ){ if(data) window.location = "admin.php?page=esign-addons&tab=enable&esig-update=success"; $('#esig-update-popup').dialog( "close" ); },"json"); */ } else { jQuery.post(esigAjax.ajaxurl, {action: "esig_update_remind_settings"}, function (data) { window.location = "admin.php?page=esign-addons&tab=enable&esig-auto=now&esig-update=success"; $('#esig-update-popup').dialog("close"); }, "json"); } }); })(jQuery);