From 7f989837a951590222c092a3b1caeb807e833247 Mon Sep 17 00:00:00 2001 From: Philipp Bosch Date: Thu, 26 May 2011 11:06:36 +0200 Subject: [PATCH] Fix for latest Chrome where the fullscreen styles were not applied. --- scripts/script.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/script.js b/scripts/script.js index 6b25ba9..feb1d16 100755 --- a/scripts/script.js +++ b/scripts/script.js @@ -64,6 +64,13 @@ function updateView() { linkScreen.disabled = fullscreen; linkProjection.disabled = !fullscreen; + if (fullscreen) { + linkScreen.setAttribute('disabled', 'disabled'); + linkProjection.removeAttribute('disabled'); + } else { + linkScreen.removeAttribute('disabled'); + linkProjection.setAttribute('disabled', 'disabled'); + } if(!hashList[url.hash]) turnSlide(0); }