diff --git a/src/components/slideshow/slideshow.js b/src/components/slideshow/slideshow.js index 40d87e9519..4d426f2484 100644 --- a/src/components/slideshow/slideshow.js +++ b/src/components/slideshow/slideshow.js @@ -70,7 +70,7 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f var tabIndex = canFocus ? '' : ' tabindex="-1"'; autoFocus = autoFocus ? ' autofocus' : ''; - return ''; + return ''; } function setUserScalable(scalable) { @@ -201,14 +201,16 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f function onAutoplayStart() { var btnSlideshowPause = dlg.querySelector('.btnSlideshowPause i'); if (btnSlideshowPause) { - btnSlideshowPause.innerHTML = "pause"; + btnSlideshowPause.classList.remove("play_arrow"); + btnSlideshowPause.classList.add("pause"); } } function onAutoplayStop() { var btnSlideshowPause = dlg.querySelector('.btnSlideshowPause i'); if (btnSlideshowPause) { - btnSlideshowPause.innerHTML = ""; + btnSlideshowPause.classList.remove("pause"); + btnSlideshowPause.classList.add("play_arrow"); } } @@ -365,8 +367,7 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f } function playPause() { - - var paused = dlg.querySelector('.btnSlideshowPause i').innerHTML !== "pause"; + var paused = !dlg.querySelector('.btnSlideshowPause i').classList.contains("pause"); if (paused) { play(); } else {