- added to Request: is_htmx_request (bool) - true if the request is made by htmx library (ajax)
- commented out using mount_page_arg_is "subject" and "info" from fun_cat.html and fun_run.html - they will be removed soon - some improvements in fun_reply.html, fun_showthreads.html and fun_thread.html (scrolling)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008-2018, Tomasz Sowa
|
||||
* Copyright (c) 2008-2021, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -377,11 +377,7 @@ void winix_locale_tab_name(Info & i)
|
||||
|
||||
void winix_is_htmx_request(Info & i)
|
||||
{
|
||||
if( cur->request->headers_in.has_key(L"HX-Request") || cur->request->headers_in.has_key(L"hx_request") )
|
||||
{
|
||||
// fastcgi will change the header to hx_request
|
||||
i.res = true;
|
||||
}
|
||||
i.res = cur->request->is_htmx_request;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user