tazpkg rev 871
pkgs.cgi: add file chooser (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 23 12:17:08 2015 +0100 (2015-11-23) |
parents | 688494ca8f5f |
children | 777cd60551cc |
files | tazpanel/pkgs.cgi |
line diff
1.1 --- a/tazpanel/pkgs.cgi Mon Nov 23 04:52:58 2015 +0200 1.2 +++ b/tazpanel/pkgs.cgi Mon Nov 23 12:17:08 2015 +0100 1.3 @@ -1320,8 +1320,7 @@ 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 - <span id="link"><input type="text" name="link" value="$(readlink $PKGS_DB/fslink 2> /dev/null)"/></span> 1.8 - <button data-icon="setlink" onclick="ajax('index.cgi?do=dir-selection&name=link', '1', 'link'); return false"/> 1.9 + $(dir_chooser "link" "$(readlink $PKGS_DB/fslink 2> /dev/null)") 1.10 <footer> 1.11 $(show_button admin=setlink admin=removelink) 1.12 </footer> 1.13 @@ -1337,8 +1336,7 @@ 1.14 1.15 <form method="post" action='?admin&action=dvdimage'> 1.16 $(_ 'Install from ISO image:') 1.17 - <span id="dvdimage"><input type="text" name="dvdimage" size="40" value="/root/packages-$version.iso" /></span> 1.18 - <button data-icon="cd" onclick="ajax('index.cgi?do=dir-selection&name=dvdimage', '1', 'dvdimage'); return false"/> 1.19 + $(dir_chooser "dvdimage" "/root/packages-$version.iso") 1.20 </form> 1.21 </div> 1.22