This commit is contained in:
Jay Trees 2022-02-25 13:55:54 +01:00
parent e3bbd3d0ae
commit 271a018fb8
2 changed files with 4 additions and 6 deletions

View file

@ -90,9 +90,9 @@ $(function () {
function generateCacheCard(card) {
card = $(card);
var href = card.find('.content [href]').prop('href');
var href = card.find('.content [href]').prop('href');
var product_id = card.data('id');
var refresh = card.find('button.refresh');
var refresh = card.find('button.refresh');
card.addClass('loading');
card.attr('data-cache', true);
@ -117,8 +117,6 @@ $(function () {
* Image
*/
if (info.image) {
console.log(elementImage);
if (!elementImage.length) {
card.prepend(
'<div class="image">' +

View file

@ -1,10 +1,10 @@
<?php
/**
* cache.php
*
* Cache embed requests.
*
* @see https://github.com/oscarotero/Embed/issues/471
*
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/