diff options
author | Pacien TRAN-GIRARD | 2014-05-15 16:11:59 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-05-15 16:11:59 +0200 |
commit | 88704fd2891fc23e16bc4054af8aff987d3d4215 (patch) | |
tree | 77526fd68e02de00bdd2870bb973bd48deb44af6 /js/slide-deck.js | |
parent | 331e487ff8c2fcced09bd78c7f30486a6cb85f74 (diff) | |
download | io-slides-remote-88704fd2891fc23e16bc4054af8aff987d3d4215.tar.gz |
Fix popup mode when opening a presentation in a new tab
Diffstat (limited to 'js/slide-deck.js')
-rw-r--r-- | js/slide-deck.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/slide-deck.js b/js/slide-deck.js index 2943658..b93cea8 100644 --- a/js/slide-deck.js +++ b/js/slide-deck.js | |||
@@ -111,9 +111,9 @@ SlideDeck.prototype.onDomLoaded_ = function(e) { | |||
111 | // // Also, no need to set this up if we're on mobile. | 111 | // // Also, no need to set this up if we're on mobile. |
112 | // if (!Modernizr.touch) { | 112 | // if (!Modernizr.touch) { |
113 | this.controller = new SlideController(this); | 113 | this.controller = new SlideController(this); |
114 | if (this.controller.isPresenter) { | 114 | // if (this.controller.isPresenter) { |
115 | document.body.classList.add('popup'); | 115 | // document.body.classList.add('popup'); |
116 | } | 116 | // } |
117 | // } | 117 | // } |
118 | }; | 118 | }; |
119 | 119 | ||
@@ -223,11 +223,11 @@ SlideDeck.prototype.onBodyKeyDown_ = function(e) { | |||
223 | break; | 223 | break; |
224 | 224 | ||
225 | case 80: // P | 225 | case 80: // P |
226 | if (this.controller && this.controller.isPresenter) { | 226 | // if (this.controller && this.controller.isPresenter) { |
227 | document.body.classList.toggle('with-notes'); | 227 | document.body.classList.toggle('with-notes'); |
228 | } else if (this.controller && !this.controller.popup) { | 228 | // } else if (this.controller && !this.controller.popup) { |
229 | document.body.classList.toggle('with-notes'); | 229 | // document.body.classList.toggle('with-notes'); |
230 | } | 230 | // } |
231 | break; | 231 | break; |
232 | 232 | ||
233 | case 82: // R | 233 | case 82: // R |