function fcSaveItemComment(id) { if ($("#fcItemComment_"+id).val() != "") { $.ajax({ type:"POST", data: { fcExternalAction : "fcSaveItemComment", fcItemSelected : id, fcItemComment : $("#fcItemComment_"+id).val() }, url:"https://www.feedcowboy.com/fc.input.php", success: function(data) { if (fcGetResponseStatus(data) == 1) { fcNotify(fcGetResponseMessage(data)); fcHideItemOverlay(id); $(".fcHideAfterSuccess").hide(); } else { fcNotify(fcGetResponseMessage(data)); } } }); } } function fcOpenItem(id, url) { if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && url != undefined) { window.location.href = url; } else { $("#fcOverlay").fadeOut(300, function() { $.ajax({ type:"POST", data: { fcExternalAction : "fcGetOverlay", fcOverlayID : "fcItemView", fcItemSelected : id }, url:"https://www.feedcowboy.com/fc.output.php", success: function(data) { $("body").css("overflow-y", "hidden"); $("#fcOverlay").html(data).fadeIn(300); } }); }); } } function fcShowItemShare(id) { $(".fcItemOverlay").hide(); $.ajax({ type:"POST", data: { fcExternalAction : "fcGetItemOverlay", fcItemSelected : id, fcItemOverlayID : "fcItemShare", }, url:"https://www.feedcowboy.com/fc.output.php", success: function(data) { $("#fcItem_"+id+" .fcItemOverlay").html(data).fadeIn(300); } }); } function fcShowItemComment(id) { $(".fcItemOverlay").hide(); $.ajax({ type:"POST", data: { fcExternalAction : "fcGetItemOverlay", fcItemSelected : id, fcItemOverlayID : "fcItemComment", }, url:"https://www.feedcowboy.com/fc.output.php", success: function(data) { $("#fcItem_"+id+" .fcItemOverlay").html(data).fadeIn(300); } }); } function fcHideItemOverlay(id) { $("#fcItem_"+id+" .fcItemOverlay").fadeOut(300, function() { $("#fcItem_"+id+" .fcItemOverlay").html(""); }); }