0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.143.241.205


Current Path : /var/www/html/admission/ebbuze/assets/js/
Upload File :
Current File : /var/www/html/admission/ebbuze/assets/js/custom_javascript.js

jQuery(document).ready(function() {

    // Redirect to html page based on API Call
    jQuery('.tabs a').on('click', function(e) {
        e.preventDefault();
        switch (this.parentNode.id) {
            // -----^-- get parent node and it's id
           
            case "initiate_payment_tab":
                window.location.href = "view/initiate_payment.html";
            break;

            case "initiate_payment_iframe_tab":
                window.location.href = "view/initiate_payment_iframe.html";
            break;

            case "transaction_tab":
                window.location.href = "view/transaction.html";
            break;

            case "transaction_date_tab":
                window.location.href = "view/transaction_date.html";
            break;

            case "refund_tab":
                window.location.href = "view/refund.html";
            break;

            case "payout_tab":
                window.location.href = "view/payout.html";
            break;
        }
    });
    
});

// Set date picker on UI
$(function(){
    $("#transaction_date").datepicker({ dateFormat: 'dd-mm-yy' });
    $("#payout_date").datepicker({ dateFormat: 'dd-mm-yy' });
});