File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 54
54
</ div >
55
55
</ div >
56
56
57
- < form id ="content " class ="content " hx-swap-oob ="true " hx-include ="[name='pastePassword'] ">
57
+ < form id ="content " class ="content " hx-swap-oob ="true " hx-get ="/htmx/fetch " hx-target ="#pastecontainer "
58
+ hx-vals ="js:{id: window.location.pathname, noReload: 'true'} " hx-include ="[name='pastePassword'] "
59
+ hx-trigger ="keyup[keyCode==13] " onSubmit ="return false; ">
58
60
< div id ="pastecontainer " class ="pasteContainer ">
59
61
< div class ="protected ">
60
62
< h1 > Password Protected!</ h1 >
@@ -63,7 +65,8 @@ <h1>Password Protected!</h1>
63
65
maxlength ="100 " type ="password " autocomplete ="off " />
64
66
< span id ="errorResponse " style ="display: none; "> </ span >
65
67
< span class ="savePaste " hx-get ="/htmx/fetch " hx-target ="#pastecontainer "
66
- hx-vals ="js:{id: window.location.pathname, noReload: 'true'} "> Submit</ span >
68
+ hx-vals ="js:{id: window.location.pathname, noReload: 'true'} "
69
+ hx-include ="[name='pastePassword'] "> Submit</ span >
67
70
</ div >
68
71
</ div >
69
72
</ form >
You can’t perform that action at this time.
0 commit comments