Website - Wordpress
Plugin used - https://github.com/tomharrigan/transporter
Plugin Js file - https://github.com/tomharrigan/transporter/blob/master/transporter.js
Line No 121 of the JS
file
/**
* Renders the results from a successful response.
*/
Scroller.prototype.render = function( response ) {
this.body.addClass( 'infinity-success' );
// Check if we can wrap the html
this.element.append( response.html );
this.body.trigger( 'post-load', response );
this.ready = true;
}
Basically i want to modify some of the my html before
the data is appended
The only problem is i cannot modify the plugin Js
file as it may get a update and all the changes will get lost
Is it possible to extend the plugin in another JS
file?
/**
* Renders the results from a successful response.
*/
Scroller.prototype.render = function( response ) {
this.body.addClass( 'infinity-success' );
// changed html
this.element.find('.infinite-wrap .loading-message').html('Next post is loaded');
// Check if we can wrap the html
this.element.append( response.html );
this.body.trigger( 'post-load', response );
this.ready = true;
}