3468 Commits

Author SHA1 Message Date
Ben Pate
0fa2bb00b5 Merge branch 'dev' into pullrequest-beforeProcessNode 2020-12-30 13:18:30 -07:00
Ben Pate
fe893f248a Add event htmx:beforeProcessNode 2020-12-30 12:11:16 -07:00
Johan Vosloo
d529108045 Added documentation 2020-12-30 15:00:24 +01:00
Johan Vosloo
b46e8ab10f Added tests 2020-12-30 14:49:21 +01:00
Ben Pate
d928c7ca38 Improved error handling
- Catches rapid mouse movements better
- Better test cases
2020-12-29 22:12:47 -07:00
Ben Pate
294885454b Style updates
- use built-in htmx.parseInterval function instead of custom one
- smarter handling of mouse movement inside complex objects
- more descriptive values in preloadState
- also, semicolons
2020-12-29 20:39:07 -07:00
Ben Pate
a327b0078e Unit tests working
- fixed issues with Chai unit tests
- removed old function
2020-12-29 19:57:05 -07:00
Ben Pate
354be034d2 Updating ParseInterval
- add tests
- try replacement function
2020-12-29 19:47:17 -07:00
Ben Pate
d0f19754ad Updates
- Changed API to look for event names and wait durations.
- Changed default triggers to mousedown (0ms wait time)
- Added default wait on mouseover events (100ms)
- Now using htmx.ajax for HX-GET requests.  This makes sure headers match the actual HTTP requestswhen they're made
- Updated manual tests

- More tests and documentation to come
2020-12-29 16:28:35 -07:00
Ben Pate
a7e0d80514 Merge branch 'dev' into pullrequest-preload 2020-12-29 13:29:31 -07:00
1cg
530bc1ee7e Merge pull request #272 from guettli/patch-2
Add note about data of hx-post
2020-12-29 10:12:03 -07:00
1cg
20436f243c Merge pull request #277 from bigskysoftware/bencroker-patch-2
Change how getInputValues() works
2020-12-29 10:11:00 -07:00
1cg
cc092ed9a0 Merge branch 'dev' into bencroker-patch-2 2020-12-29 10:08:34 -07:00
1cg
8e7e1f5528 Merge pull request #288 from whamtet/dev
skip validation when novalidate or form submitted indirectly
2020-12-29 10:05:00 -07:00
1cg
7b11b7f309 Merge pull request #293 from guettli/link-to-hx-swap-for-timing
Link to hx-swap for timing (docs only).
2020-12-29 10:04:11 -07:00
Thomas Guettler
19921cd36d Link to hx-swap for timing (docs only).^ 2020-12-28 21:56:55 +01:00
Thomas Guettler
c84176e236 Merge branch 'master' of github.com:bigskysoftware/htmx into patch-2 2020-12-28 21:48:14 +01:00
1cg
1a4940f98f Merge pull request #289 from sandebert/patch-1
Update docs.md
2020-12-28 07:28:09 -07:00
Fredrik Sandebert
66bbc140b5 Update docs.md
Fixed minor typo
2020-12-28 13:11:29 +01:00
Johan Vosloo
53ba918f09 Update path-deps.js 2020-12-27 11:38:15 +01:00
Matthew Molloy
e01c7f77e4 skip validation when novalidate or form submitted indirectly 2020-12-27 12:59:48 +07:00
Johan Vosloo
44af39083d Update path-deps.js 2020-12-26 23:28:44 +01:00
Johan Vosloo
ac830eb42b Update path-deps.js 2020-12-26 23:22:23 +01:00
Johan Vosloo
a8b7f0171b Update path-deps.js 2020-12-26 23:20:34 +01:00
Johan Vosloo
d105d7bce7 Update path-deps.js 2020-12-26 23:17:34 +01:00
Johan Vosloo
19b436773d Update path-deps.js
By catering for a new custom event called `htmx:refreshPath`, we should be able to support the triggering of the refresh of a specific path
2020-12-26 22:58:17 +01:00
carson
5fd24a7096 support the hx-preserve attribute
fixes https://github.com/bigskysoftware/htmx/issues/284
2020-12-24 06:36:15 -07:00
carson
d3f2444bb7 support target resolving in ajaxHelper 2020-12-24 06:12:29 -07:00
carson
265a756e09 remove some headers for better HTTP caching & clean up 2020-12-24 06:03:41 -07:00
carson
bc62ec5cec Merge remote-tracking branch 'origin/dev' into dev 2020-12-24 05:50:58 -07:00
carson
59b9f57fe9 add .ajax() to API 2020-12-24 05:50:48 -07:00
carson
7427ab2a6d clean up response handler parameters 2020-12-24 05:35:47 -07:00
carson
fb64e76de0 clean up parameters 2020-12-24 05:16:15 -07:00
carson
0a00f38432 extract response handling 2020-12-24 04:58:59 -07:00
Thomas Guettler
60ed3f8743 added link to parameters to delete/get/patch/post/put 2020-12-23 23:32:39 +01:00
Ben Pate
7eb8e3fb90 Configuraion Enhancements
This extension now allows a configuration argument `preload="event,event,event"` on any node in the DOM. This argument can be inherited from parent nodes, and defaults to "mouseover,touchstart"
2020-12-23 13:46:02 -07:00
carson
1970e4280a remove bad console.log 2020-12-22 18:15:03 -07:00
Ben Croker
062a70e3e9 Removed unused parameter 2020-12-21 20:09:11 +01:00
Ben Croker
0f226d29dd Added test 2020-12-19 10:18:42 +01:00
Ben Croker
94881490a5 Update htmx.js 2020-12-18 23:32:22 +01:00
Ben Croker
fc757b9aff Update htmx.js 2020-12-18 23:26:41 +01:00
Ben Croker
6749a462ca Change how getInputValues() works 2020-12-18 23:05:33 +01:00
Ben Croker
adc5b2a5fa Undo previous commit, meant to submit a PR, doh! 2020-12-18 23:04:30 +01:00
Ben Croker
591954e72d Change how getInputValues() works 2020-12-18 23:00:00 +01:00
Ben Pate
2f915efaf0 Create preload.js 2020-12-16 22:34:57 -07:00
1cg
64f7aa2cf9 Merge pull request #269 from benpate/pullrequest-modal-docs
More Documentation for Modal Dialogs
2020-12-16 10:10:13 -07:00
1cg
61fe3899c8 Merge branch 'dev' into pullrequest-modal-docs 2020-12-16 10:09:52 -07:00
1cg
deab215734 Merge pull request #270 from benpate/pullrequest-tabs
Example Code for Tabs
2020-12-16 10:08:57 -07:00
Thomas Güttler
529ec35762 Add note about data of hx-post
See #271
2020-12-16 09:49:18 +01:00
Ben Croker
a64fa3cf07 Fixed example code 2020-12-15 17:30:56 +01:00