From d13b681b4005150be44d8231a6b4e8e368f6dd68 Mon Sep 17 00:00:00 2001 From: Bunulu Andrei Date: Thu, 7 Aug 2014 10:37:32 +0300 Subject: [PATCH] DDBEASY-186 - Expanded issues section added. --- js/hjorbib.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/hjorbib.js b/js/hjorbib.js index 2fdac09..147979f 100644 --- a/js/hjorbib.js +++ b/js/hjorbib.js @@ -2,15 +2,15 @@ 'use strict'; /** - * Expanded holdings section by default on object page. + * Expanded holdings and issues section by default on object page. */ - Drupal.behaviors.expandHoldings = { + Drupal.behaviors.expandSection = { attach: function (context) { var objectPage = $('.page-ting-object', context), - holdingsSection = objectPage.find('.group-holdings-available').find('.field-group-format-title'); + expandedSection = objectPage.find('.group-holdings-available, .group-periodical-issues').find('.field-group-format-title'); if (objectPage.length !== 0) { - holdingsSection.trigger('click'); + expandedSection.trigger('click'); } } };