add FunctionBase::push_url_to(...) methods
This commit is contained in:
@@ -1019,6 +1019,29 @@ void FunctionBase::close_modal_dialogs()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void FunctionBase::push_url_to(const wchar_t * local_url)
|
||||||
|
{
|
||||||
|
if( cur->request->is_htmx_request )
|
||||||
|
{
|
||||||
|
pt::WTextStream url;
|
||||||
|
prepare_doc_url(local_url, url);
|
||||||
|
cur->request->out_headers.add(Header::hx_push_url, url);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void FunctionBase::push_url_to(const pt::Stream & local_url)
|
||||||
|
{
|
||||||
|
if( cur->request->is_htmx_request )
|
||||||
|
{
|
||||||
|
pt::WTextStream url;
|
||||||
|
prepare_doc_url(nullptr, url);
|
||||||
|
url << local_url;
|
||||||
|
cur->request->out_headers.add(Header::hx_push_url, url);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void FunctionBase::push_url_to_current_dir(const wchar_t * local_url)
|
void FunctionBase::push_url_to_current_dir(const wchar_t * local_url)
|
||||||
{
|
{
|
||||||
if( cur->request->is_htmx_request )
|
if( cur->request->is_htmx_request )
|
||||||
|
@@ -226,6 +226,9 @@ public:
|
|||||||
|
|
||||||
virtual void close_modal_dialogs();
|
virtual void close_modal_dialogs();
|
||||||
|
|
||||||
|
virtual void push_url_to(const wchar_t * local_url = nullptr);
|
||||||
|
virtual void push_url_to(const pt::Stream & local_url);
|
||||||
|
|
||||||
virtual void push_url_to_current_dir(const wchar_t * local_url = nullptr);
|
virtual void push_url_to_current_dir(const wchar_t * local_url = nullptr);
|
||||||
virtual void push_url_to_current_item(const wchar_t * local_url = nullptr);
|
virtual void push_url_to_current_item(const wchar_t * local_url = nullptr);
|
||||||
virtual void push_url_to_current_function(const wchar_t * local_url = nullptr);
|
virtual void push_url_to_current_function(const wchar_t * local_url = nullptr);
|
||||||
|
Reference in New Issue
Block a user