trdlo / client175

Automatically exported from code.google.com/p/client175
GNU General Public License v3.0
0 stars 0 forks source link

Too easy to delete station in playlist #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It happens often that an attempt to change the current playlist item in the 
playlist
will lead to the inadvertent deletion of the selected item. A red X will appear 
next 
to the playlist item number on mouse hover. If selected, this will delete the 
playlist item.
My question is where in the source is this code? I would like to either disable 
it or 
provide the user with a confirm() dialog.  Thanks!

Original issue reported on code.google.com by florian....@gmail.com on 14 Oct 2013 at 1:18

GoogleCodeExporter commented 8 years ago
The delete action is on line 170 of mpd.browser.js:
https://code.google.com/p/client175/source/browse/trunk/static/mpd.browser.js

The red X and green plus on hover is initiated by toggling the 
"simulated-hover" class in the methods on lines 284/289 of the same file.

The "simulated-hover" style that applies the red x is on line 160 of style.css:
https://code.google.com/p/client175/source/browse/trunk/static/style.css

Original comment by cseic...@gmail.com on 14 Oct 2013 at 6:38