tazlito rev 403
live.cgi: add file chooser (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 23 12:22:17 2015 +0100 (2015-11-23) |
parents | 6c738e349722 |
children | b24f0f72ecf8 |
files | live.cgi |
line diff
1.1 --- a/live.cgi Sun Nov 22 19:00:05 2015 +0100 1.2 +++ b/live.cgi Mon Nov 23 12:22:17 2015 +0100 1.3 @@ -308,8 +308,7 @@ 1.4 <table> 1.5 <tr><td> 1.6 $(_ 'ISO to convert') 1.7 - <span id="input"><input type="text" name="input" value="$inputiso" /></span> 1.8 - <button data-icon="cd" onclick="ajax('index.cgi?do=file-selection&name=input', '1', 'input'); return false"/> 1.9 + $(file_chooser "input" "$inputiso" "cd") 1.10 </td></tr> 1.11 <tr><td> 1.12 <input type="radio" name="type" value="ram" id="type1" checked /> 1.13 @@ -366,8 +365,7 @@ 1.14 <table> 1.15 <tr><td> 1.16 $(_ 'ISO to convert') 1.17 - <span id="input"><input type="text" name="input" /></span> 1.18 - <button data-icon="cd" onclick="ajax('index.cgi?do=file-selection&name=input', '1', 'input'); return false"/> 1.19 + $(file_chooser "input" "" "cd") 1.20 </td></tr> 1.21 </table> 1.22 1.23 @@ -416,8 +414,7 @@ 1.24 <tr> 1.25 <td> 1.26 $(_ 'ISO to add') 1.27 - <span id="input"><input type="text" name="input" value="/root/" /></span> 1.28 - <button data-icon="cd" onclick="ajax('index.cgi?do=file-selection&name=input', '1', 'input'); return false"/> 1.29 + $(file_chooser "input" "" "cd") 1.30 </td> 1.31 <td> 1.32 $(_ 'Minimum RAM:')