File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ func (l action) Attrs() map[template.HTMLAttr]any {
9797
9898 return map [template.HTMLAttr ]any {
9999 method : fmt .Sprintf ("/+/star/%s" , url .PathEscape (l .page .Name ())),
100+ "href" : fmt .Sprintf ("/+/star/%s" , url .PathEscape (l .page .Name ())),
100101 }
101102}
102103
Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ func (u Upload) Attrs() map[template.HTMLAttr]any {
1818 link := fmt .Sprintf ("/+/upload-file/form?page=%s" , url .PathEscape (u .p .Name ()))
1919
2020 return map [template.HTMLAttr ]any {
21- "href" : link ,
22- "hx-post" : link ,
21+ "href" : link ,
22+ "hx-post" : link ,
23+ "hx-target" : "body" ,
24+ "hx-swap" : "beforeend" ,
2325 }
2426}
2527
Original file line number Diff line number Diff line change 3636 const commands = ( ) => document . getElementById ( 'commands-modal' ) ;
3737
3838 // clicking any link in the commands list executes the command
39- commands ( ) . querySelectorAll ( 'a' ) . forEach ( ele => ele . addEventListener ( 'click' , evt => commands ( ) . close ( ) ) ) ;
39+ commands ( ) . querySelectorAll ( 'a' ) . forEach ( ele => ele . addEventListener ( 'click' , evt => commands ( ) . classList . remove ( "is-active" ) ) ) ;
4040
4141 // Pressing Ctrl+K shows the commands list
4242 document . addEventListener ( 'keydown' , e => {
You can’t perform that action at this time.
0 commit comments