Skip to content

Commit

Permalink
fixed the posts.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
RitikaDesai98 committed Oct 31, 2023
1 parent b39ad92 commit 31b467e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp/wp-content/themes/phila.gov-theme/js/dev/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (typeof phila_js_vars !== 'undefined') {
$.ajax(ajaxURL).done(function (response) {
var fullSizeImg = response._embedded["wp:featuredmedia"]["0"].media_details.sizes.full.source_url;
var featuredCaption = response._embedded["wp:featuredmedia"]["0"].caption.rendered;
$modal.html('<div class="lightbox-content"><img src="' + fullSizeImg + '" alt=""></div>');
$modal.html('<div class="lightbox-content"><img src="' + fullSizeImg + '" alt="" /></div>');

if(response._embedded["wp:featuredmedia"]["0"].meta_box.phila_media_credit.length) {
var featuredCredit = document.createElement("p");
Expand Down Expand Up @@ -126,7 +126,7 @@ $(function(){
//modal for any image that's been added to the page and linked to.
var $modal = $('#phila-lightbox');
function loadContent(url){
$modal.html('<div class="lightbox-content"><img src="' + url + '" alt=""></div>').foundation('open');
$modal.html('<div class="lightbox-content"><img src="' + url + '" alt=""/></div>').foundation('open');
$modal.append(closeButton);
};

Expand Down

0 comments on commit 31b467e

Please sign in to comment.