HEX
Server: LiteSpeed
System: Linux server53.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: nahevttf (6494)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/nahevttf/public_html/wp-content/plugins/woo-multi-currency/js/reports.js
'use strict';
jQuery(document).ready(function ($) {
    let currency = woocommerce_multi_currency_admin_reports.currency;
    if (currency) {
        let $export = $('a.export_csv');
        if ($export.length > 0) {
            let download = $export.attr('download');
            if (download) {
                $export.attr('download', download.replace('.csv', '-' + currency + '.csv'));
            }
        }
    }
    $('.subsubsub').append($('.wmc-reports-currency-selector')).append($('.wmc-view-default-currency-container'));
    $('#wmc-view-default-currency').on('click', function () {
        let report_link = $(this).data('report_link');
        if (report_link) {
            window.location = report_link;
        }
    })
});