MichaelWest22
b98e4f2b12
fix htmx.ajax defaulting to swap body when target not found ( #2878 )
...
* ajax helper handle no target
* allow source only targeting
* Add tests
* Handle source set but invalid target set
* Improve source logic
* missed #
* improve readiblity and add inline comment
2024-10-02 19:18:22 -06:00
Jackie Li
4916ce4d02
fix #2932 : check parent is null for swap delete ( #2933 )
...
* fix #2932 : check parent is null for swap
* fix test in swap when parent elt deleted
2024-10-02 19:08:39 -06:00
Denis Palashevskii
7fe27dd275
Refactor and expose swap
in public API ( #2191 )
...
* refactor and expose swapping as a single method
* fixes after rebasing on latest 2.0
* fix optional parameters for swapping
* add `fullSwap` to internal API
* swap refactor polishing
* make linter happy
2024-01-19 16:31:34 -07:00
Alexander Petros
4b890ce72d
Run linter on the tests too
2023-12-21 13:22:10 -05:00
gbourant
6a9a861ad9
Allow user to override Content-Type header ( #1906 )
...
* allow user to override Content-Type header
* reorder the code so it won't use userSetContentType variable
* remove userSetContentType
* clarification
* remove unrelated changes
---------
Co-authored-by: gbourant <root@gbourant.com>
2023-11-16 13:42:45 -07:00
Jacob Scott
cabff5db14
Add select
option to htmx.ajax() ( #1985 )
...
adds select to ajax api
2023-11-16 13:37:38 -07:00
Alexander Petros
bfd7965dec
Disable logAll in headless mode ( #1673 )
...
Enabling logAll in just one test has the capacity to overwhelm the CI
with log output, so we disable it if the webdriver is automated.
2023-08-06 18:06:17 -06:00
Alexander Petros
c126d90588
Move load tests to the bottom of the core file ( #1677 )
...
This "resolves" a timing bug that was ocurring in the CI, where these
tests would run before htmx was loaded (only in the GitHub actions
servers). Not proud of this as a fix but I would like the CI to work
again ASAP.
2023-08-05 16:15:49 -06:00
Alexander Petros
fe4a803e2e
Add logNone function and apply it to tests ( #1504 )
...
New function to turn off the logger after using `logAll()`. I applied to
this to the tests as well so that `logAll()` is only used in the specfic
places where debug output is required. This makes the console output of
the tests dramatically more useful when run from the command line.
2023-06-24 14:21:55 -06:00
Carson Gross
84d8e33deb
fix tests
2022-10-30 13:49:29 -06:00
Carson Gross
1dbb22b682
allow re-initialization if attributes change
2022-10-02 13:17:23 -06:00
Ben Beecher
9ec6ffa930
Adding swap argument for ajax calls ( #769 )
...
* Adding swap argument for ajax calls
* Adding documentation
* Removing ;'s
2022-02-04 11:01:51 -07:00
carson
e82219cc0d
IE fixes
2021-03-09 08:54:16 -07:00
carson
b54d6e57d3
Improve API
2021-03-06 06:50:56 -07:00
carson
3bcae82498
return a promise for a bright hyperscript future
2021-02-26 14:20:49 -07:00
carson
58f373d1e5
config that disallows eval
in htmx implementation
...
addressed https://github.com/bigskysoftware/htmx/issues/305
2021-01-04 10:36:56 -07:00
carson
b1729b2b85
improve API by taking string selectors in place of elements
2020-12-04 15:06:02 -07:00
carson
751ad91755
basic test for logAll()
2020-10-19 09:52:18 -06:00
carson
4f3cf2d889
Move events from <event name>.htmx
(jQuery style) to htmx:<event name>
(zepto style)
...
fixes https://github.com/bigskysoftware/htmx/issues/109
2020-06-30 10:45:30 -07:00
carson
23a9a33486
path-deps
extension
...
fixes https://github.com/bigskysoftware/htmx/issues/21
2020-05-23 17:06:20 -07:00
carson
52f58241f6
bump version remove js version property
2020-05-17 07:01:01 -07:00
carson
3aa8c64754
le big re-rename
2020-05-17 05:22:19 -07:00
carson
fd6e3f68d8
version bump and start using dev branch like a civilized human
2020-05-15 19:25:52 -07:00
carson
5f9f1940b1
Clean up parameter inclusion logic and update demos to use GET where appropriate, rather than hiding from my bad design choices
...
Add API test + fixes and update all files
2020-05-14 17:10:24 -07:00