X-Git-Url: https://git.wh0rd.org/?p=chrome-ext%2Fmusic-player-client.git;a=blobdiff_plain;f=main.js;h=b9d188deced4318cfd565942404e11cadabc3b32;hp=c0436df50ddc4ad0faf2f6eb8a19d469e211ca8b;hb=ea13f13a1c11e84f8de064bba91b6aa331a18007;hpb=2ff2c6c19a379a1ea3ab25038fadb17cc9a104c4 diff --git a/main.js b/main.js index c0436df..b9d188d 100644 --- a/main.js +++ b/main.js @@ -193,7 +193,7 @@ function init_ui(local_keys, sync_keys, options) { 'seekcur', 'setvol', 'single', 'stop', ].forEach(function(id) { var ele = window['ui_mpc_' + id] = document.getElementById(id); - ele.onclick = window['tramp_mpc_' + id]; + ele.onchange = ele.onclick = window['tramp_mpc_' + id]; ele.title = id; });