carson
8933030b52
Merge remote-tracking branch 'origin/master'
2020-06-15 12:12:15 -07:00
carson
b1902221d7
include contents in reference section
2020-06-15 12:12:08 -07:00
36864
1620dd7ba3
Add extension to extensions.md
2020-06-15 10:56:36 +01:00
carson
4bc6d532c6
move section to end
2020-06-13 20:45:33 -07:00
carson
17c3f74e0c
X-IC-Redirect implementation
2020-06-13 20:44:25 -07:00
carson
84200f4599
update hyperscript and docs
2020-06-13 13:17:25 -07:00
carson
06dc449e91
fix up docs
2020-06-12 16:14:39 -07:00
carson
008ca2958a
fix up docs
2020-06-12 16:05:06 -07:00
carson
dd89f21e26
some rough docs for hyperscript
2020-06-12 15:55:15 -07:00
carson
0ac641b63f
remove the hx-error-url attribute in favor of hyperscript
...
add basic hyperscript compatibility testing
2020-06-12 13:42:55 -07:00
Stephane Angel (Twidi)
0b9448e727
Extension.handleSwap: handle new content
...
Before this commit, the content that were swapped by an extension via
`handleSwap` was not handled by htmx: elemtents with `hx-` attributes,
scripts, no `load.htmx` event...
With this commit, if the `handleSwap` command returns an array of newly
added elements (only the first level), then they will be handled by htmx
like it's done for internal swap.
To not break existing extensions, `handleSwap` can still return `true`
to tell that the swap was handled, assuming than there is no new
elements to handle.
A new test was added with a button that, when clicked, loads a text and
a span with `hx-trigger=load`, both handled by an extension. This commit
allows this span to be loaded.
The return of the `morphdom-swap` extension was updated to return the
target element, even if unchanged, to let htmx check in the maybe new
content that there is something new to handle. This is tested in a new
test.
2020-06-12 02:08:05 +02:00
Stephane Angel (Twidi)
86febd3efc
Extension.handleSwap: trigger events for extensions defined on parents
...
If an element is replaced by an extension in `handleSwap`, the events
(`afterSwap.htmx` and `afterSettle.htmx`) were not received by the
`onLoad` method of extensions defined on parents of the target, because
theses extensions were retrieved after the replacement, and so it was
not possible to get through the parents, the target not being in the dom
anymore.
This commits loads the extensions for the target and save them in
`eventDetail` before doing the swap, so they are accessible in
`triggerEvent`, and passed to `withExtensions` that use this list if
passed (else load them).
A new test is added that fails without the updates in `htmx.js`.
2020-06-12 01:20:13 +02:00
carson
7a0010f43c
update dist
2020-06-11 13:05:09 -07:00
carson
c1c9ce5a93
Merge branch 'master' into dev
2020-06-11 13:04:25 -07:00
chg20
7f2a93608d
Merge pull request #92 from cscortes/fixup-json-enc
...
Fixup json enc
2020-06-11 13:02:41 -07:00
Luis Cortes
55a0fb51dd
Fixed issue with xhr.
2020-06-11 12:47:33 -06:00
chg20
0e21054fe0
Merge pull request #91 from ssendev/patch-1
...
fix hx-sse trigger in example
2020-06-11 09:47:17 -07:00
carson
296f354fef
fix throttle and make the trigger spec test actually work
2020-06-11 09:45:42 -07:00
cscortes
bc6715fcea
Merge pull request #1 from bigskysoftware/master
...
Just getting back up to date
2020-06-11 10:03:50 -06:00
ssendev
068161e817
fix hx-sse trigger in example
2020-06-11 17:24:35 +02:00
carson
96c9623a3d
test fix
2020-06-11 06:55:50 -07:00
carson
2ac221bdbc
try to preserve focus and selection state when active element is replaced
...
fixes https://github.com/bigskysoftware/htmx/issues/75
2020-06-11 06:53:18 -07:00
carson
1f62541094
support throttle modifier in trigger definition
...
https://github.com/bigskysoftware/htmx/issues/88
2020-06-11 06:21:49 -07:00
carson
4ef719e63a
support hx-swap="none"
...
fixes https://github.com/bigskysoftware/htmx/issues/89
2020-06-11 06:02:23 -07:00
carson
5e8fbb2956
include redirects file
2020-06-11 05:39:13 -07:00
carson
b345984bee
clean up and move essay
2020-06-11 05:30:12 -07:00
carson
a65c37ec4f
Include full path w/ variables when pushing a GET
...
Fixes https://github.com/bigskysoftware/htmx/issues/58
2020-06-10 16:37:03 -07:00
carson
6f14cba2e6
Trigger events on new content, rather than triggering element, since triggering element may have been replaced
...
fixes https://github.com/bigskysoftware/htmx/issues/79
2020-06-10 16:09:00 -07:00
carson
dbfb100d4a
Merge remote-tracking branch 'origin/dev' into dev
2020-06-10 16:02:03 -07:00
carson
2305aed18e
Move X-HTTP-Method-Override out to an extension
...
fixes https://github.com/bigskysoftware/htmx/issues/86
2020-06-10 16:01:56 -07:00
chg20
c75d057fa6
Merge pull request #80 from bencroker/patch-7
...
Added missing events and ordered alphabetically
2020-06-09 19:48:32 -06:00
carson
86f1334d30
move script evaluation under the AJAX processing so we don't double eval scripts on the initial page load (ugh)
2020-06-08 19:06:42 -07:00
Robert Schroll
1060c9e88a
Avoid throwing errors when parsing malformed JSON
...
Instead, treat it as if no value was present.
2020-06-08 00:55:09 -07:00
carson
c5a3d413ac
improve documentation
2020-06-07 05:54:29 -07:00
36864
92561e193c
Add an extension to include the commonly-used X-Requested-With header
2020-06-05 15:44:02 +01:00
Ben Croker
c5e76b983d
Added missing events and ordered alphabetically
2020-06-05 12:23:27 +02:00
carson
182d2efc4c
include rails extension
2020-06-04 07:09:00 -07:00
carson
75444d4a7b
Merge remote-tracking branch 'origin/master'
2020-06-04 07:06:26 -07:00
carson
1fb51947a9
include rails extension
2020-06-04 07:06:18 -07:00
chg20
ef6b354d4f
Merge pull request #71 from marcus-at-localhost/patch-1
...
Fix Typo+Formatting
thank you!
2020-06-03 05:48:05 -07:00
chg20
1e192ccedc
Merge pull request #77 from szepeviktor/patch-1
...
Uniform badges in README
Thank you!
2020-06-03 05:47:34 -07:00
chg20
ca3f91b536
Merge pull request #72 from GavinRay97/patch-4
...
Nunjucks render inline take two
2020-06-03 05:46:41 -07:00
Viktor Szépe
87175afafb
Uniform badges
...
:) :) :)
2020-05-31 13:24:11 +02:00
GavinRay97
70b7ccd5bf
Nunjucks render inline take two
2020-05-30 16:45:30 -04:00
carson
6464f8d1ee
Merge remote-tracking branch 'origin/dev' into dev
...
# Conflicts:
# www/reference.md
2020-05-30 12:06:13 -07:00
carson
533da1c71c
Merge branch 'master' into dev
2020-05-30 12:05:05 -07:00
Marcus
74ec096ae1
Fix Typo+Formatting
2020-05-30 19:10:49 +02:00
carson
f501ca6f7e
fine, I'll use the standard spelling
2020-05-29 15:35:33 -07:00
carson
28665a8ea0
Merge remote-tracking branch 'origin/master'
2020-05-29 15:32:30 -07:00
carson
bfcdd365c2
locality of behavior doc
2020-05-29 15:32:24 -07:00