Skip to content

Commit

Permalink
Removed the resources indicators for now - I'll look at adding these …
Browse files Browse the repository at this point in the history
…after Connect or later on in the week
  • Loading branch information
Kyle Kirkby committed Sep 18, 2018
1 parent 3c1f0f6 commit 3f0a51e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions _layouts/post-index-resources.html
Expand Up @@ -24,7 +24,7 @@

defer(function () {
// Check to see for the resources stats div
if ($(".resource-info.using_json")[0].length > 1) {
if ($(".resource-info.using_json").length > 1) {
// Get the current Connect code from the event-code attribute
var connectCode = $("#main-resources-content").attr("event-id");
// URL for the resources.json
Expand All @@ -36,7 +36,7 @@
complete: function (jsonResponse) {
jsonData = JSON.parse(jsonResponse.responseText);
// Loop through each instance of the resource-info div and set the correct stats indicators
$.each(".resource-info.using_json", function (jsonData) {
$.each(".resource-info.using_json", function () {
// Find the corresponding key in the JSON data
$.each(jsonData, function (idx, obj) {
// Get the current Connect code
Expand Down Expand Up @@ -100,12 +100,6 @@
</a>
{% if using_json == "True" %}
<div class="resource-info col-xs-12 no-padding using_json" session-id="{{post.session_id}}">
<div class="video col-xs-6">
<i class="icon-youtube"></i> - <i class="glyphicon glyphicon-remove-sign"></i>
</div>
<div class="presentation col-xs-6">
<i class="icon-linkedin"></i> - <i class="glyphicon glyphicon-remove-sign"></i>
</div>
</div>
<div class="resource-title col-xs-12 no-padding">
<h3>{{post.title}}</h3>
Expand Down

0 comments on commit 3f0a51e

Please sign in to comment.