Merge pull request #22 from philippbosch/gh-pages

Latest Chrome does not work in full-screen mode
This commit is contained in:
Vadim Makeev 2011-05-26 02:18:00 -07:00
commit ff6a9063fa
1 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,13 @@
function updateView() { function updateView() {
linkScreen.disabled = fullscreen; linkScreen.disabled = fullscreen;
linkProjection.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); if(!hashList[url.hash]) turnSlide(0);
} }