From 06ef8309ea36c979a9d73470f977f4a770227006 Mon Sep 17 00:00:00 2001 From: Kevin Corry Date: Tue, 28 Jan 2014 08:26:39 +0000 Subject: [PATCH] Fixes #21 Switch out hotgraphic for a narrative when screensize isn't large --- js/adapt-contrib-hotgraphic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/adapt-contrib-hotgraphic.js b/js/adapt-contrib-hotgraphic.js index bb011c6..44760d4 100644 --- a/js/adapt-contrib-hotgraphic.js +++ b/js/adapt-contrib-hotgraphic.js @@ -13,7 +13,7 @@ define(function(require) { this.listenTo(Adapt, 'remove', this.remove); this.listenTo(this.model, 'change:_isVisible', this.toggleVisibility); this.preRender(); - if (Adapt.device.screenSize!='small') { + if (Adapt.device.screenSize=='large') { this.render(); } else { this.reRender(); @@ -46,7 +46,7 @@ define(function(require) { }, reRender: function() { - if (Adapt.device.screenSize == 'small') { + if (Adapt.device.screenSize != 'large') { this.replaceWithNarrative(); } },