Created
March 14, 2012 22:27
-
-
Save 0x46616c6b/2040042 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getNumberOfPosts() { | |
var ajaxUrl; | |
ajaxUrl = getAjaxUrl(); | |
return $.ajax({ | |
url: ajaxUrl, | |
type: 'GET', | |
data: {"action": "numberofposts"}, | |
success: function(data) { | |
return parseInt(data.responseText); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment