Plugin Directory

Changeset 2366213


Ignore:
Timestamp:
08/21/2020 02:28:52 AM (6 years ago)
Author:
varunms
Message:

3.3.7 [21-08-2020]

  • Fixed Javascript Issues with WordPress V5.5
  • Still WC Role Based Price V4.0 Work On Going .
Location:
woocommerce-role-based-price
Files:
77 added
4 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-role-based-price/trunk/includes/js/backend.js

    r2096827 r2366213  
    117117
    118118    $.WCRBP.add_variation_selectbox = function() {
    119         if( $( ".wcrbpvariationbx" ).size() > 0 ) {
     119        if( $( ".wcrbpvariationbx" ).length > 0 ) {
    120120            $( ".wcrbpvariationbx" ).appendTo( "#wc-rbp-product-editor .hndle span" );
    121121        }
    122122
    123         if( jQuery( '.wcrbpvariationbx' ).size() > 0 ) {
     123        if( jQuery( '.wcrbpvariationbx' ).length > 0 ) {
    124124            jQuery( '.wcrbpvariationbx' ).selectize( {
    125125                plugins: [ 'remove_button', 'restore_on_backspace' ],
     
    152152
    153153    $.WCRBP.move_selectbox_metabox = function() {
    154         $( '#wc-rbp-product-editor' ).find( '.hndle' ).unbind( 'click' );
     154        $( '#wc-rbp-product-editor' ).find( '.hndle' ).off( 'click' );
    155155
    156156        $( '#wc-rbp-product-editor' ).on( 'click', '.hndle', function( event ) {
    157157            event.preventDefault();
    158             if( $( event.target ).filter( 'input, option, label, select,  div, span' ).size() ) {
     158            if( $( event.target ).filter( 'input, option, label, select,  div, span' ).length ) {
    159159                jQuery( '#wc-rbp-product-editor' ).toggleClass( 'closed' );
    160160            }
     
    213213        //$(document.body).on('keyup change', '.wc_rbp_selling_price', $.WCRBP.validate_selling_price);
    214214
    215         if( $( "input.wc_rbp_checkbox" ).size() > 0 ) {
     215        if( $( "input.wc_rbp_checkbox" ).length > 0 ) {
    216216            $( "input.wc_rbp_checkbox" ).wcrbp_checkbox();
    217217        }
    218218
    219         if( $( ".wcrbpvariationbx" ).size() > 0 ) {
     219        if( $( ".wcrbpvariationbx" ).length > 0 ) {
    220220            $.WCRBP.add_variation_selectbox();
    221221        }
    222222
    223         if( $( ".wcrbp-tabs" ).size() > 0 ) {
     223        if( $( ".wcrbp-tabs" ).length > 0 ) {
    224224            $.WCRBP.block( $( 'div#wc-rbp-product-editor div.inside' ) );
    225225            $.WCRBP.render_wootabs();
     
    270270    };
    271271
    272     $( document ).ready( function() {
     272    $( function() {
    273273        $.WCRBP.basic_init_metabox();
    274274    } );
    275275
    276     $( window ).load( function() {
    277         if( $( '#wc-rbp-product-editor' ).size() > 0 ) {
     276    jQuery(window).on('load',function () {
     277        if( $( '#wc-rbp-product-editor' ).length > 0 ) {
    278278            $.WCRBP.move_selectbox_metabox();
    279279            $.WCRBP.unblock( $( 'div#wc-rbp-product-editor div.inside' ) );
    280280        }
    281     } )
    282 
     281    });
    283282} )( jQuery, window, document );
    284283
  • woocommerce-role-based-price/trunk/includes/js/settings-page.js

    r1838371 r2366213  
    7676
    7777    $(document).ready(function () {
    78         if ( jQuery('div.wc_rbp_addon_listing').size() > 0 ) {
     78        if ( jQuery('div.wc_rbp_addon_listing').length > 0 ) {
    7979            jQuery('p.submit').remove();
    8080        }
     
    8686        });
    8787
    88         jQuery('.wc_rbp_settings_submenu a').click($.WCRBP_SETTINGS.settings_click_handler);
     88        jQuery('.wc_rbp_settings_submenu a').on("click",$.WCRBP_SETTINGS.settings_click_handler);
    8989
    90         if ( jQuery('.wc_rbp_settings_submenu').size() > 0 ) {
     90        if ( jQuery('.wc_rbp_settings_submenu').length > 0 ) {
    9191            $.WCRBP_SETTINGS.handle_settings_page_url();
    9292        }
     
    114114        jQuery('ul.wc_rbp_addons_category li a').each(function () {
    115115            var category = jQuery(this).attr('data-category');
    116             var catCount = jQuery('.wc-rbp-addon-' + category).size();
     116            var catCount = jQuery('.wc-rbp-addon-' + category).length;
    117117            jQuery(this).append(' <span class="catCount"> (' + catCount + ') </span>');
    118118
  • woocommerce-role-based-price/trunk/readme.txt

    r2158870 r2366213  
    99WC requires at least: 3.0
    1010WC tested up to:3.5
    11 Stable tag: 3.3.6
     11Stable tag: 3.3.7
    1212License: GPLv2 or later
    1313License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    185185
    186186== Changelog ==
     187= 3.3.7 [21-08-2020] =
     188* Fixed Javascript Issues with WordPress V5.5
     189* Still WC Role Based Price V4.0 Work On Going .
     190
     191
    187192= 3.3.6 [19-09-2019] =
    188193* Minor updates.
  • woocommerce-role-based-price/trunk/woocommerce-role-based-price.php

    r2158870 r2366213  
    44 * Plugin URI:        https://wordpress.org/plugins/woocommerce-role-based-price/
    55 * Description:       Sell product in different price for different user role based on your settings.
    6  * Version:           3.3.6
     6 * Version:           3.3.7
    77 * Author:            Varun Sridharan
    88 * Author URI:        http://varunsridharan.in
     
    2121define( 'WC_RBP_INC', WC_RBP_PATH . 'includes/' ); # Plugin INC Folder
    2222define( 'WC_RBP_DEPEN', 'woocommerce/woocommerce.php' );
    23 define( 'WC_RBP_VARIABLE_VERSION', '3.3.6' );
     23define( 'WC_RBP_VARIABLE_VERSION', '3.3.7' );
    2424register_activation_hook( __FILE__, 'wc_rbp_activate_plugin_name' );
    2525register_deactivation_hook( __FILE__, 'wc_rbp_deactivate_plugin_name' );
Note: See TracChangeset for help on using the changeset viewer.