Подтверждение удаления и прочие визуальные доработки.
[mpd-web.git] / view / default / tmpl / playlistmenu.php
index bc0f8f06bd2f7e137a577c96ec63b2c1289abe26..cb8113a7bb3c754cdafbbce4ab2f11461736337f 100644 (file)
@@ -2,7 +2,7 @@
         <table>
                 <tr>
                        <td><span class="button" onclick="EditPlayList()"><img width="20" src="images/songs.png"></span><td>
-                       <td><span class="button" onclick="PlaylistCommand('clear')" ><img width="20" src="images/removeall.png"></span><td>
+                       <td><span class="button" onclick="return confirm('Очистить список. Вы уверены?') ? PlaylistCommand('clear') : false;" ><img width="20" src="images/removeall.png"></span><td>
                        <td><span class="button" onclick="PlaylistItemsCommand('removeselected')"><img width="20" src="images/removeselected.png"></span><td>
                </tr>
         </table>