Refactor
This commit is contained in:
parent
e3bbd3d0ae
commit
271a018fb8
2 changed files with 4 additions and 6 deletions
|
@ -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">' +
|
||||
|
|
|
@ -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>
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue