mirror of
https://github.com/SuperBFG7/ympd
synced 2025-01-14 11:15:49 +00:00
Advanced actions for database view
This commit is contained in:
parent
13c00ae34c
commit
f886128afe
@ -895,8 +895,7 @@ function parseListTitles(obj) {
|
|||||||
tbody.innerHTML=titleList.join('');
|
tbody.innerHTML=titleList.join('');
|
||||||
|
|
||||||
img.addEventListener('click', function() {
|
img.addEventListener('click', function() {
|
||||||
//sendAPI({"cmd":"MPD_API_ADD_TRACK", "data": { "uri": decodeURI(this.getAttribute('data-uri'))}});
|
// appendQueue('song', decodeURI(this.getAttribute('data-uri')), this.getAttribute('data-name'));
|
||||||
//showNotification('"'+ decodeURI(this.getAttribute('data-name')) + '" added', '', '', 'success');
|
|
||||||
showMenu(this);
|
showMenu(this);
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
@ -904,8 +903,7 @@ function parseListTitles(obj) {
|
|||||||
var tr_length = tr.length;
|
var tr_length = tr.length;
|
||||||
for (var i = 0; i < tr_length; i ++) {
|
for (var i = 0; i < tr_length; i ++) {
|
||||||
tr[i].addEventListener('click', function() {
|
tr[i].addEventListener('click', function() {
|
||||||
sendAPI({"cmd":"MPD_API_ADD_TRACK", "data": { "uri": decodeURI(this.getAttribute('data-uri'))}});
|
appendQueue('song', decodeURI(this.getAttribute('data-uri')), this.getAttribute('data-name'));
|
||||||
showNotification('"' + this.getAttribute('data-name') + '" added','','','success');
|
|
||||||
}, false);
|
}, false);
|
||||||
tr[i].getElementsByTagName('a')[0].addEventListener('click', function(event) {
|
tr[i].getElementsByTagName('a')[0].addEventListener('click', function(event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
Loading…
Reference in New Issue
Block a user