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) {
|
function generateCacheCard(card) {
|
||||||
card = $(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 product_id = card.data('id');
|
||||||
var refresh = card.find('button.refresh');
|
var refresh = card.find('button.refresh');
|
||||||
|
|
||||||
card.addClass('loading');
|
card.addClass('loading');
|
||||||
card.attr('data-cache', true);
|
card.attr('data-cache', true);
|
||||||
|
@ -117,8 +117,6 @@ $(function () {
|
||||||
* Image
|
* Image
|
||||||
*/
|
*/
|
||||||
if (info.image) {
|
if (info.image) {
|
||||||
console.log(elementImage);
|
|
||||||
|
|
||||||
if (!elementImage.length) {
|
if (!elementImage.length) {
|
||||||
card.prepend(
|
card.prepend(
|
||||||
'<div class="image">' +
|
'<div class="image">' +
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cache.php
|
|
||||||
*
|
|
||||||
* Cache embed requests.
|
* Cache embed requests.
|
||||||
*
|
*
|
||||||
|
* @see https://github.com/oscarotero/Embed/issues/471
|
||||||
|
*
|
||||||
* @author Jay Trees <github.jay@grandel.anonaddy.me>
|
* @author Jay Trees <github.jay@grandel.anonaddy.me>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue