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($) { | |
$.fn.displayPost = function() { | |
event.preventDefault(); | |
var post_id = $(this).data("id"); | |
var id = "#" + post_id; | |
// Check if the reveal modal for the specific post id doesn't already exist by checking for it's length | |
if($(id).length == 0 ) { | |
// We'll add an ID to the new reveal modal; we'll use that same ID to check if it exists in the future. |
NewerOlder