aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorEric Bidelman2013-03-05 08:08:25 -0800
committerEric Bidelman2013-03-05 08:08:25 -0800
commit76273d4cbc163a1fe773a6198a2ac67144fa5bd2 (patch)
tree3169bc7d61a9a3311d11a0aae47da5401eeff732 /js
parent95fbc0b6c349ef6a3633ef8b0d51ed46b6b70765 (diff)
downloadio-slides-remote-76273d4cbc163a1fe773a6198a2ac67144fa5bd2.tar.gz
Patch for customizing evenet title. Fixes issue 12
Diffstat (limited to 'js')
-rw-r--r--js/slide-deck.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/js/slide-deck.js b/js/slide-deck.js
index 50b9dc5..6fc99eb 100644
--- a/js/slide-deck.js
+++ b/js/slide-deck.js
@@ -315,7 +315,10 @@ SlideDeck.prototype.loadConfig_ = function(config) {
315 } 315 }
316 316
317 if (settings.title) { 317 if (settings.title) {
318 document.title = settings.title.replace(/<br\/?>/, ' ') + ' - Google IO 2012'; 318 document.title = settings.title.replace(/<br\/?>/, ' ');
319 if (settings.eventTitle) {
320 document.title += ' - ' + settings.eventTitle;
321 }
319 document.querySelector('[data-config-title]').innerHTML = settings.title; 322 document.querySelector('[data-config-title]').innerHTML = settings.title;
320 } 323 }
321 324
@@ -363,7 +366,11 @@ SlideDeck.prototype.loadConfig_ = function(config) {
363 366
364 var dataConfigPresenter = document.querySelector('[data-config-presenter]'); 367 var dataConfigPresenter = document.querySelector('[data-config-presenter]');
365 if (dataConfigPresenter) { 368 if (dataConfigPresenter) {
366 document.querySelector('[data-config-presenter]').innerHTML = html; 369 dataConfigPresenter.innerHTML = html;
370 if (settings.eventTitle) {
371 dataConfigPresenter.innerHTML = dataConfigPresenter.innerHTML + '<br>' +
372 settings.eventTitle;
373 }
367 } 374 }
368 } 375 }
369 376