- 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:
@@ -1,9 +1,11 @@
|
||||
<div class="winix">
|
||||
<div class="winix winix-thread-reply">
|
||||
|
||||
<h1>{thread_header_reply}</h1>
|
||||
|
||||
|
||||
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][item_url]/reply" [if winix_has_htmx]hx-post="[doc_base_url][dir][item_url]/reply"[end]>
|
||||
[# it would be better to have to 'item' objects: one for item_url and the other for item_content]
|
||||
[# this will be added when ezc will have its own objects templates]
|
||||
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][item_url]/reply" [if winix_has_htmx]hx-post="[doc_base_url][dir][item_url]/reply/scrolldown"[end]>
|
||||
|
||||
[if thread_mount_arg_is "subject"]
|
||||
<div class="uk-margin">
|
||||
@@ -26,7 +28,7 @@
|
||||
[if mount_type_is "thread"]<label for="winix_content_id">{form_emacs_content_thread}</label>[end]
|
||||
|
||||
<div class="uk-form-controls">
|
||||
<textarea class="uk-textarea" id="winix_content_id" rows="10" cols="60" name="itemcontent"></textarea>
|
||||
<textarea class="uk-textarea" id="winix_content_id" rows="10" cols="60" name="itemcontent">[item_content]</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -74,3 +76,14 @@
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="winix-fake-div"></div>
|
||||
|
||||
[if any winix_has_htmx winix_is_htmx_request winix_has_uikit]
|
||||
<script>
|
||||
[# how does it work?]
|
||||
UIkit.scroll(".winix-fake-div").scrollTo(".winix-thread-reply");
|
||||
</script>
|
||||
[end]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user