Added login request

This commit is contained in:
Nedim Uka
2018-06-20 18:03:43 +02:00
parent 4e52521fae
commit 593b445a21
4716 changed files with 1218265 additions and 57 deletions

View File

@@ -0,0 +1,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);