tazpkg rev 869
pkgs.cgi: add file chooser
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 22 19:11:25 2015 +0100 (2015-11-22) |
parents | 4a01b2d7bfd9 |
children | 688494ca8f5f |
files | tazpanel/pkgs.cgi |
line diff
1.1 --- a/tazpanel/pkgs.cgi Sun Nov 22 12:07:51 2015 +0100 1.2 +++ b/tazpanel/pkgs.cgi Sun Nov 22 19:11:25 2015 +0100 1.3 @@ -1320,7 +1320,8 @@ 1.4 <div> 1.5 $(_ "This link points to the root of another SliTaz installation. You will be able to install packages using soft links to it.") 1.6 </div> 1.7 - <input type="text" name="link" value="$(readlink $PKGS_DB/fslink 2> /dev/null)"/> 1.8 + <span id="link"><input type="text" name="link" value="$(readlink $PKGS_DB/fslink 2> /dev/null)"/></span> 1.9 + <button data-icon="setlink" onclick="ajax('index.cgi?do=dir-selection&name=link', '1', 'link'); return false"/> 1.10 <footer> 1.11 $(show_button admin=setlink admin=removelink) 1.12 </footer> 1.13 @@ -1336,7 +1337,8 @@ 1.14 1.15 <form method="post" action='?admin&action=dvdimage'> 1.16 $(_ 'Install from ISO image:') 1.17 - <input type="text" name="dvdimage" size="40" value="/root/packages-$version.iso" /> 1.18 + <span id="dvdimage"><input type="text" name="dvdimage" size="40" value="/root/packages-$version.iso" /></span> 1.19 + <button data-icon="cd" onclick="ajax('index.cgi?do=dir-selection&name=dvdimage', '1', 'dvdimage'); return false"/> 1.20 </form> 1.21 </div> 1.22