Support » Plugin: Easy Appointments » Feature request: custom event on success, in admin

  • Hi.
    Great plugin!

    I am trying to insert a custom link in the admin appointments page, on every appointment, using javascript.

    The problem is that i dont have an event when the appointments are refreshed.

    So i edited the file: plugins/easy-appointments/js/settings.prod.js

    I added this code on line 310 (after this.collection = new EA.Appointments();):

    
    // on every complete fetch, emit a custom event for customizations
    this.collection.on('sync', function() {
        var event = document.createEvent('Event');
        event.initEvent('easyapp_render_appointments', true, true);
        document.dispatchEvent(event);
    });
    

    Can you include this in the next release ?
    I think this might be useful for other developers as well.

  • The topic ‘Feature request: custom event on success, in admin’ is closed to new replies.