Skip to content

Commit

Permalink
Merge pull request #19 from gnehs/dev
Browse files Browse the repository at this point in the history
修正隨機播放跟重複播放的按鈕按下無反應
  • Loading branch information
gnehs authored Aug 14, 2018
2 parents 8fb73f8 + 22d48b9 commit 9e67cf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,11 @@ async function showNow() {
// random&loop
$("[data-player]>.info>.ctrl>.random").html($('.aplayer-icon.aplayer-icon-order').html())
$("[data-player]>.info>.ctrl>.loop").html($('.aplayer-icon.aplayer-icon-loop').html())
$("[data-player]>.info>.ctrl>.random").click(() => {
$("[data-player]>.info>.ctrl>.random").click(function() {
$('#aplayer .aplayer-icon.aplayer-icon-order').click()
$(this).html($('.aplayer-icon.aplayer-icon-order').html())
})
$("[data-player]>.info>.ctrl>.loop").click(() => {
$("[data-player]>.info>.ctrl>.loop").click(function() {
$('#aplayer .aplayer-icon.aplayer-icon-loop').click()
$(this).html($('.aplayer-icon.aplayer-icon-loop').html())
});
Expand Down

0 comments on commit 9e67cf7

Please sign in to comment.