function registerInputTextareaSwap(inputSelector, defaultText, inputFieldName, optional) {
$(inputSelector).each(function() {
textarea = $("<textarea name=\"" + inputFieldName + "\"></textarea>").blur(function() {
function registerInputTextareaSwap(inputSelector, defaultText, inputFieldName, optional) {
$(inputSelector).each(function() {
textarea = $("<textarea name=\"" + inputFieldName + "\"></textarea>").blur(function() {
$("#sone .post").each(function() {
postId = $(this).attr("id");
commentElement = (function(postId) {
$("#sone .post").each(function() {
postId = $(this).attr("id");
commentElement = (function(postId) {
function updatePostLikes(postId) {
$.getJSON("ajax/getPostLikes.ajax", { "post": postId }, function(data, textStatus) {
if (data.success) {
function updatePostLikes(postId) {
$.getJSON("ajax/getPostLikes.ajax", { "post": postId }, function(data, textStatus) {
if (data.success) {