Change play/pause control text with play state
This commit is contained in:
parent
941fac19e8
commit
aa524c8039
@ -433,7 +433,7 @@
|
||||
</div>
|
||||
<div id="controldiv" class="playPausebtn">
|
||||
<a href="#" onclick="doPlay(); return false"><span id="btplay"><img src="images/icons/pause_32x32.png"
|
||||
alt="Play" id="playimg"/></span></a>
|
||||
alt="Play" id="playimg" title="Play"/></span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div data-role="footer" data-tap-toggle="false" data-position="fixed" id="nowPlayingFooter">
|
||||
@ -447,9 +447,9 @@
|
||||
</p>
|
||||
|
||||
<div class="nowPlayingControls" style="float:left; margin-left: 5px;">
|
||||
<a href="#" onclick="doPrevious(); return false" title="Previous"><span id="btprev"><i class="fa fa-fast-backward"></i></span></a>
|
||||
<a href="#" onclick="doPlay(); return false" title="Play"><span id="btplayNowPlaying"><i class="fa fa-play"></i></span></a>
|
||||
<a href="#" onclick="doNext(); return false" title="Next"><span id="btnext"><i class="fa fa-fast-forward"></i></span></a>
|
||||
<a href="#" onclick="doPrevious(); return false"><span id="btprev" title="Previous"><i class="fa fa-fast-backward"></i></span></a>
|
||||
<a href="#" onclick="doPlay(); return false"><span id="btplayNowPlaying" title="Play"><i class="fa fa-play"></i></span></a>
|
||||
<a href="#" onclick="doNext(); return false"><span id="btnext" title="Next"><i class="fa fa-fast-forward"></i></span></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /footer -->
|
||||
|
||||
@ -262,10 +262,14 @@ function doShuffle() {
|
||||
function setPlayState(nwplay) {
|
||||
if (nwplay) {
|
||||
$("#playimg").attr('src', 'images/icons/pause_32x32.png');
|
||||
$("#playimg").attr('title', 'Pause');
|
||||
$("#btplayNowPlaying >i").removeClass('fa-play').addClass('fa-pause');
|
||||
$("#btplayNowPlaying").attr('title', 'Pause');
|
||||
} else {
|
||||
$("#playimg").attr('src', 'images/icons/play_alt_32x32.png');
|
||||
$("#playimg").attr('title', 'Play');
|
||||
$("#btplayNowPlaying >i").removeClass('fa-pause').addClass('fa-play');
|
||||
$("#btplayNowPlaying").attr('title', 'Play');
|
||||
}
|
||||
play = nwplay;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user