Вычищение старых конструкций PHP + многочисленная доводка по мелочи.
[mpd-web.git] / ajax / editplaylist.php
index b7e8bf44ae65b46534c0e5828535a5dbff57c9c9..31c66974acbab5a946f6374615028ba648fb46e2 100644 (file)
@@ -18,7 +18,7 @@ $dir = $_REQUEST['dir'];
        <table>
                <tr>
                        <td><span class="button" onclick="RefreshPlaylist()"><img width="20" src="images/playlist.png"></span><td>
        <table>
                <tr>
                        <td><span class="button" onclick="RefreshPlaylist()"><img width="20" src="images/playlist.png"></span><td>
-                       <td><span class="button" onclick="PlaylistEditCommand('addall','<?php echo escapePhpString($dir);?>')" ><img width="20" src="images/addall.png"></span><td>
+                       <td><span class="button" onclick="return confirm('Add all to the list, are you sure?') ? PlaylistEditCommand('addall','<?php echo escapePhpString($dir);?>') : false;" ><img width="20" src="images/addall.png"></span><td>
                        <td><span class="button" onclick="PlaylistEditItemsCommand('addselected','<?php echo escapePhpString($dir);?>')"><img width="20" src="images/addselected.png"></span><td>
                </tr>
        </table>
                        <td><span class="button" onclick="PlaylistEditItemsCommand('addselected','<?php echo escapePhpString($dir);?>')"><img width="20" src="images/addselected.png"></span><td>
                </tr>
        </table>
@@ -26,7 +26,7 @@ $dir = $_REQUEST['dir'];
   <div id="items">
     <table>
     <tr id="items_heading">
   <div id="items">
     <table>
     <tr id="items_heading">
-       <td></td><td>Title</td><th colspan="2">Control</th>
+       <td></td><td>Title</td><th colspan="2">Controls</th>
     </tr>
     <?php
       $dirs=$mpd->GetDir($dir);
     </tr>
     <?php
       $dirs=$mpd->GetDir($dir);
@@ -65,7 +65,7 @@ $dir = $_REQUEST['dir'];
         <table>
                 <tr>
                        <td><span class="button" onclick="RefreshPlaylist()"><img width="20" src="images/playlist.png"></span><td>
         <table>
                 <tr>
                        <td><span class="button" onclick="RefreshPlaylist()"><img width="20" src="images/playlist.png"></span><td>
-                       <td><span class="button" onclick="PlaylistEditCommand('addall','<?php echo escapePhpString($dir);?>')" ><img width="20" src="images/addall.png"></span><td>
+                       <td><span class="button" onclick="return confirm('Add all to the list, are you sure?') ? PlaylistEditCommand('addall','<?php echo escapePhpString($dir);?>') : false;" ><img width="20" src="images/addall.png"></span><td>
                        <td><span class="button" onclick="PlaylistEditItemsCommand('addselected','<?php echo escapePhpString($dir);?>')"><img width="20" src="images/addselected.png"></span><td>
                </tr>
         </table>
                        <td><span class="button" onclick="PlaylistEditItemsCommand('addselected','<?php echo escapePhpString($dir);?>')"><img width="20" src="images/addselected.png"></span><td>
                </tr>
         </table>