diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-18 16:15:04 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-18 16:15:04 +0400 |
commit | 2b78a57658d832f9ccf9269250421a65e90b8e2b (patch) | |
tree | 8696f7bcfcb6b5c7b05d2ad629904705fc266207 /plugins/Live | |
parent | 798516a65e7ad743577e24e164d07a1ff33dac61 (diff) |
fixes #5971 better indication of current state of real time widget. Always display either play or pause icon but not both at the same time
Diffstat (limited to 'plugins/Live')
-rw-r--r-- | plugins/Live/images/pause_disabled.gif | bin | 1141 -> 0 bytes | |||
-rw-r--r-- | plugins/Live/images/play_disabled.gif | bin | 1155 -> 0 bytes | |||
-rw-r--r-- | plugins/Live/javascripts/live.js | 12 | ||||
-rw-r--r-- | plugins/Live/templates/index.twig | 8 |
4 files changed, 8 insertions, 12 deletions
diff --git a/plugins/Live/images/pause_disabled.gif b/plugins/Live/images/pause_disabled.gif Binary files differdeleted file mode 100644 index dc62608e13..0000000000 --- a/plugins/Live/images/pause_disabled.gif +++ /dev/null diff --git a/plugins/Live/images/play_disabled.gif b/plugins/Live/images/play_disabled.gif Binary files differdeleted file mode 100644 index 325147c244..0000000000 --- a/plugins/Live/images/play_disabled.gif +++ /dev/null diff --git a/plugins/Live/javascripts/live.js b/plugins/Live/javascripts/live.js index dfda0f468a..59913b8b02 100644 --- a/plugins/Live/javascripts/live.js +++ b/plugins/Live/javascripts/live.js @@ -270,17 +270,13 @@ $(function() { }; }); -var pauseImage = "plugins/Live/images/pause.gif"; -var pauseDisabledImage = "plugins/Live/images/pause_disabled.gif"; -var playImage = "plugins/Live/images/play.gif"; -var playDisabledImage = "plugins/Live/images/play_disabled.gif"; function onClickPause() { - $('#pauseImage').attr('src', pauseImage); - $('#playImage').attr('src', playDisabledImage); + $('#pauseImage').hide(); + $('#playImage').show(); return $('#visitsLive').liveWidget('stop'); } function onClickPlay() { - $('#playImage').attr('src', playImage); - $('#pauseImage').attr('src', pauseDisabledImage); + $('#playImage').hide(); + $('#pauseImage').show(); return $('#visitsLive').liveWidget('start'); } diff --git a/plugins/Live/templates/index.twig b/plugins/Live/templates/index.twig index 489ef26682..3d51b19256 100644 --- a/plugins/Live/templates/index.twig +++ b/plugins/Live/templates/index.twig @@ -35,11 +35,11 @@ {% spaceless %} <div class="visitsLiveFooter"> - <a title="Pause Live!" href="javascript:void(0);" onclick="onClickPause();"> - <img id="pauseImage" border="0" src="plugins/Live/images/pause_disabled.gif" /> + <a title="Start Live!" href="javascript:void(0);" onclick="onClickPause();"> + <img id="pauseImage" border="0" src="plugins/Live/images/pause.gif" /> </a> - <a title="Start Live!" href="javascript:void(0);" onclick="onClickPlay();"> - <img id="playImage" border="0" src="plugins/Live/images/play.gif" /> + <a title="Pause Live!" href="javascript:void(0);" onclick="onClickPlay();"> + <img id="playImage" style="display: none;" border="0" src="plugins/Live/images/play.gif" /> </a> {% if not disableLink %} |