Plugin Directory

Changeset 2414031


Ignore:
Timestamp:
11/06/2020 05:46:10 PM (5 years ago)
Author:
servicebot
Message:

adds general event handler callback

Location:
servicebot/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • servicebot/trunk/public/widgets/js/servicebot-subscription-portal-widget.js

    r2399608 r2414031  
    6464                        window.location = login_redirect_url;
    6565                    }
    66 
    67                     // if(data != 0 && login_redirect_url){
    68                     //     window.location = login_redirect_url;
    69                     // }else if( data == 0 ){
    70                     //     var message = document.createElement('div');
    71                     //     message.innerText = "Subscription created! But the email already exist, please login to see your subscription."
    72                     //     var embedContainer = document.querySelector('#servicebot-subscription-portal');
    73                     //     embedContainer.parentNode.insertBefore(message, embedContainer)
    74                     //     console.error("Subscription created but WP user alrady exist for", response.customer.email);
    75                     // }
    7666                };
    7767
     
    7969            }
    8070
    81         }else{
    82             console.log("No callback was called", event, response);
     71        }
     72        if(servicebot_wp_handle_response){
     73            servicebot_wp_handle_response({event, response, extras})
    8374        }
    8475    }
  • servicebot/trunk/servicebot.php

    r2414019 r2414031  
    1717 * Plugin URI:        http://www.wpexplorer.com/servicebot/
    1818 * Description:       This is a short description of what the plugin does. It's displayed in the WordPress admin area.
    19  * Version:           1.1.8
     19 * Version:           1.1.9
    2020 * Author:            Servicebot
    2121 * Author URI:        https://servicebot.io
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'SERVICEBOT_VERSION', '1.1.8' );
     38define( 'SERVICEBOT_VERSION', '1.1.9' );
    3939
    4040/**
Note: See TracChangeset for help on using the changeset viewer.