This repository has been archived on 2022-08-01. You can view files and clone it, but cannot push or open issues or pull requests.
Oldphaloskepsis/plugins/jetpack/modules/likes/post-count-jetpack.js

19 lines
448 B
JavaScript
Raw Normal View History

2017-01-12 23:10:07 +00:00
var wpPostLikeCount = wpPostLikeCount || {};
(function($) {
wpPostLikeCount = jQuery.extend( wpPostLikeCount, {
request: function( options ) {
return $.ajax( {
type: 'GET',
url: wpPostLikeCount.jsonAPIbase + options.path,
dataType : 'jsonp',
data: options.data,
success: function( response ) { options.success( response ); },
error: function( response ) { options.error( response ); }
} );
}
} );
})(jQuery);