summaryrefslogtreecommitdiff
blob: 42e7a0ebebfb97e1c91390a5332c4f2db10543a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);