Plugin Directory

Changeset 2974378


Ignore:
Timestamp:
10/03/2023 03:14:21 PM (3 years ago)
Author:
managedorg
Message:

bootstrap loaded if modal function not defined

Location:
managedorg-product-driver
Files:
59 added
3 edited

Legend:

Unmodified
Added
Removed
  • managedorg-product-driver/trunk/donative.php

    r2973948 r2974378  
    44Plugin URI: https://wordpress.org/plugins/managedorg-product-driver/
    55Description: Managedorg Product Driver for Amazon Business Integration.
    6 Version: 1.0.7.6.4
     6Version: 1.0.7.6.5
    77Author: Managedorg
    88Author URI: https://managedorg.io/
     
    1111   
    1212if (!class_exists('MODD_Donation')) :
    13 define('MODD_VERSION', '1.0.7.6.4');
     13define('MODD_VERSION', '1.0.7.6.5');
    1414define('MODD_PLUGIN_URL', plugin_dir_url(__FILE__));
    1515define('MODD_PLUGIN_MAIN_PATH', plugin_dir_path(__FILE__));
  • managedorg-product-driver/trunk/js/payments-donative.js

    r2973948 r2974378  
    2020            entryId = '';
    2121        }
    22         jQuery('.modal').modal('hide');
     22       
     23        if (typeof jQuery('.modal').modal === 'function') {
     24            jQuery('.modal').modal('hide');
     25        } else {
     26            jQuery.getScript('https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js', function() {
     27                jQuery('.modal').modal('hide');
     28            });
     29        }
     30       
    2331        if( jQuery('#instantPaymentModalDiv').length == 0 ){
    2432            jQuery('body').append('<div id="instantPaymentModalDiv"></div>');
  • managedorg-product-driver/trunk/readme.txt

    r2973948 r2974378  
    44Requires at least: 4.7
    55Tested up to: 6.2
    6 Stable tag: 1.0.7.6.4
     6Stable tag: 1.0.7.6.5
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    144144* Pricing format modified.
    145145
    146 = 1.0.7.6.4=
     146= 1.0.7.6.5=
    147147* New design
    148148* New shortcode attributes products_per_page, campaigns_per_page, cart_checkbox
Note: See TracChangeset for help on using the changeset viewer.