Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mcrwfrd/hugo-frances-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Crawford <michael@crawford.io>2019-08-09 01:22:05 +0300
committerMichael Crawford <michael@crawford.io>2019-08-09 01:22:05 +0300
commit215907266f463fd75d79113c2e9e792ea39dc57f (patch)
tree972299d0b41db53618ba4566f32867be05fcf402
parentb8a355753939acc68d9aae46f998fe0fe51b4ca1 (diff)
add back mediums and dimensions
-rw-r--r--static/js/grid.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/static/js/grid.js b/static/js/grid.js
index 3fda246..4bebe96 100644
--- a/static/js/grid.js
+++ b/static/js/grid.js
@@ -297,7 +297,9 @@ var Grid = (function() {
create : function() { // need to add dimensions and mediums here
this.$title = $('<h3></h3>');
this.$description = $('<p></p>');
- this.$details = $('<div class="og-details"></div>').append(this.$title, this.$description);
+ this.$mediums = $('<p></p>');
+ this.$dimensions = $('<p></p>');
+ this.$details = $('<div class="og-details"></div>').append(this.$title, this.$description, this.$mediums, this.$dimensions);
this.$loading = $('<div class="og-loading"></div>');
this.$fullimage = $('<div class="og-fullimg"></div>').append(this.$loading);
this.$closePreview = $('<span class="og-close"></span>');
@@ -333,10 +335,14 @@ var Grid = (function() {
largesrc : $itemElement.data('largesrc'),
title : $itemElement.data('title'),
description : $itemElement.data('description'),
+ mediums : $itemElement.data('mediums'),
+ dimensions : $itemElement.data('dimensions')
};
this.$title.html(elementData.title);
this.$description.html(elementData.description);
+ this.$mediums.html(elementData.mediums);
+ this.$dimensions.html(elementData.dimensions);
var self = this;