mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 10:03:56 +01:00
fix: {.dialog||yesno.} was not working
This commit is contained in:
parent
26ddc2b126
commit
308561090f
2
main.pas
2
main.pas
@ -5551,7 +5551,7 @@ var
|
||||
url:=chop(lastDelimiter('/', urlCmd)+1, 0, urlCmd);
|
||||
// we know an urlCmd must begin with ~
|
||||
// favicon is handled as an urlCmd: we provide HFS icon.
|
||||
// an non-existent ~file will be detected a hundred lines below.
|
||||
// a non-existent ~file will be detected a hundred lines below.
|
||||
if ansiStartsStr('~', urlCmd) or (urlCmd = 'favicon.ico') then
|
||||
f:=findFileByURL(url);
|
||||
end;
|
||||
|
||||
@ -1228,20 +1228,20 @@ var
|
||||
'information=64'
|
||||
);
|
||||
var
|
||||
i, j, code: integer;
|
||||
code: integer;
|
||||
decode: TStringDynArray;
|
||||
s: string;
|
||||
s, d: string;
|
||||
buttons, icon: boolean;
|
||||
begin
|
||||
decode:=split(' ',par(1));
|
||||
code:=0;
|
||||
for i:=0 to length(decode)-1 do
|
||||
for j:=1 to length(STR2CODE) do
|
||||
begin
|
||||
s:=STR2CODE[j];
|
||||
if ansiStartsStr(decode[i], s) then
|
||||
inc(code, strToIntDef(substr(s, 1+pos('=',s)), 0));
|
||||
end;
|
||||
for d in decode do
|
||||
for s in STR2CODE do
|
||||
if startsStr(d+'=', s) then
|
||||
begin
|
||||
inc(code, strToIntDef(substr(s, 2+d.length), 0));
|
||||
Break
|
||||
end;
|
||||
buttons:=code AND 15 > 0;
|
||||
icon:=code SHR 4 > 0;
|
||||
if not icon and buttons then
|
||||
|
||||
4
todo.txt
4
todo.txt
@ -34,7 +34,8 @@ document: single line diff templates (file path)
|
||||
document: {.disconnection reason|if=XXX.}
|
||||
document: %url%
|
||||
document: commands returning white space: add folder, save, set account, exec, mkdir, chdir, delete, rename, move copy, set
|
||||
document: dir, disk free, filetime, file changed, load tpl, sha256, for line
|
||||
document: base64, base64decode, dir, disk free, filetime, file changed, load tpl, sha256, for line
|
||||
document: new event [login]
|
||||
+ event to filter logging http://www.rejetto.com/forum/index.php/topic,9784.0.html
|
||||
- wrong browser http://www.rejetto.com/forum/index.php/topic,9710.0.html
|
||||
solution:
|
||||
@ -52,7 +53,6 @@ document: dir, disk free, filetime, file changed, load tpl, sha256, for line
|
||||
? in getPage() many %symbols% are translated in a way incompatible with {.section.}
|
||||
? Windows Script Interfaces
|
||||
? {.image|src=file|width=x|dst=outfile.}
|
||||
+ replace /~imgXX with ?mode=icon&id=XX
|
||||
+ user input through {.dialog.}
|
||||
+ show missing files in VFS http://www.rejetto.com/forum/index.php/topic,8203.new.html
|
||||
* {.cache.} should be able to work on a simple variable
|
||||
|
||||
Loading…
Reference in New Issue
Block a user