Plugin Directory

Changeset 3465281


Ignore:
Timestamp:
02/19/2026 05:55:56 PM (6 weeks ago)
Author:
datalogics
Message:

2.6.61

Location:
datalogics
Files:
92 added
6 edited

Legend:

Unmodified
Added
Removed
  • datalogics/assets/readme-he_IL.txt

    r3462309 r3465281  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 2.6.60
     6Stable tag: 2.6.61
    77Requires PHP: 7.4
    88License: GPLv2 or later
  • datalogics/trunk/README.txt

    r3462309 r3465281  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 2.6.60
     6Stable tag: 2.6.61
    77Requires PHP: 7.4
    88License: GPLv2 or later
  • datalogics/trunk/actions.php

    r3421099 r3465281  
    3737            "body" => wp_json_encode($data),
    3838            "sslverify" => false,
     39            'timeout'     => 30,
    3940        )
    4041    );
     
    109110                        "body" => wp_json_encode($data),
    110111                        "sslverify" => false,
     112                        'timeout'     => 30,
    111113                    )
    112114                );
     
    184186                "body" => wp_json_encode($data),
    185187                "sslverify" => false,
     188                'timeout'     => 30,
    186189            )
    187190        );
     
    461464                    "body" => json_encode($data),
    462465                    "sslverify" => false,
     466                    'timeout'     => 30,
    463467            )
    464468        );
  • datalogics/trunk/datalogics.php

    r3462309 r3465281  
    1010    License: GPLv2 or later
    1111    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    12     Version: 2.6.60
     12    Version: 2.6.61
    1313*/
    1414
  • datalogics/trunk/js/scripts.js

    r3406858 r3465281  
    11
    2 jQuery(document).ready(function ($) {  
     2jQuery(document).ready(function ($) {
    33   
    4    
    5 
     4 
    65    window.addEventListener('message', function(event) {
    76        //if (event.origin !== '') return; // safety check
    87       
    98        console.log('inside event listener');
    10    
     9
    1110        if (event.data?.type === 'datalogics_shipment_created') {
    1211            const shipmentInfo = event.data.data;
    1312            console.log('Shipment update received:', shipmentInfo);
    1413
    15             if (shipmentInfo.tracking_number) {
     14            if (shipmentInfo?.tracking_number) {
    1615
    1716                let parent = $(`[data-order-id='${shipmentInfo.order_id}']`);
  • datalogics/trunk/js/settings.js

    r3283569 r3465281  
    22jQuery(document).ready(function ($) { 
    33   
    4     let nonce = datalogics_data_settings.nonce
     4    let nonce = datalogics_data_settings.nonce;
     5
     6    window.addEventListener('message', function(event) {
     7        //if (event.origin !== '') return; // safety check
     8       
     9        console.log('inside event listener');
     10
     11        if (event.data?.type === 'datalogics_update_token') {
     12
     13                let data = event.data.data;
     14                console.log('Token update received:', data);
     15
     16                if (data.token) {
     17
     18                    let data = {
     19                        action : 'datalogics_validate_key',
     20                        token : data.token,
     21                        nonce: nonce,
     22                    }   
     23
     24                    $.ajax(datalogics_data_settings.ajax_url, {
     25                        type: 'POST',  // http method
     26                        dataType : 'json',
     27                        data: data,  // data to submit
     28                        success: function (data, status, xhr) {
     29                        }
     30                    });
     31
     32
     33
     34                }
     35
     36        }
     37    });
    538   
    639    function initLoader(action='') {
     
    2659        let validationBox = $(".dsp-validation");
    2760
    28         if (token=='') {
     61        // if (token=='') {
    2962           
    30             validationBox.find(".invalid").removeClass("dsp-hide");
    31             $(".dsp-reg").removeClass("dsp-hide");
    32             initLoader(1);
    33             return;
    34         }
     63        //     validationBox.find(".invalid").removeClass("dsp-hide");
     64        //     $(".dsp-reg").removeClass("dsp-hide");
     65        //     initLoader(1);
     66        //     return;
     67        // }
    3568       
    3669
Note: See TracChangeset for help on using the changeset viewer.