mpc.consume(val);
setToggleButton(this, val);
}
+function tramp_mpc_deleteid() { mpc.deleteid(this.title); }
function tramp_mpc_next() { mpc.next(); }
function tramp_mpc_pause() { mpc.pause(); }
function tramp_mpc_play() { mpc.play(); }
return ret + ("00" + sec).substr(-2);
}
+function playlist_del() {
+ mpc.deleteid(this.title);
+ this.parentNode.remove();
+}
+
function update_ui(state, cmd) {
if (typeof(state) == 'string') {
ui_mpc_status.innerText = ({
if (song.Pos == currentsong.Pos)
row.style.fontWeight = 'bold';
+ cell = row.insertCell(-1);
+ cell.id = 'playlist_del';
+ cell.innerHTML = '¤';
+ cell.title = song.Id;
+ cell.onclick = playlist_del;
+
cell = row.insertCell(-1);
cell.innerText = song.Pos;
cell.style.textAlign = 'right';