diff options
author | carson <carson@leaddyno.com> | 2020-05-16 14:30:33 -0700 |
---|---|---|
committer | carson <carson@leaddyno.com> | 2020-05-16 14:30:33 -0700 |
commit | 4ebdabd2279c9e44058effdc831285f87cfb32b3 (patch) | |
tree | 063d87041611e2628a80a2dfc3202b4139f107eb | |
parent | 6e06c0df877d0f4792b110e26e961d4cfd2fd96d (diff) | |
parent | 2f21351f6ef5ffc5de74c7f6f684b77618db4e7b (diff) | |
download | htmx-4ebdabd2279c9e44058effdc831285f87cfb32b3.tar.gz htmx-4ebdabd2279c9e44058effdc831285f87cfb32b3.zip |
Merge remote-tracking branch 'origin/dev' into dev
-rw-r--r-- | TODO.md | 4 | ||||
-rw-r--r-- | src/kutty.js | 6 | ||||
-rw-r--r-- | www/docs.md | 2 | ||||
-rw-r--r-- | www/examples.md | 2 | ||||
-rw-r--r-- | www/examples/inline-validation.md | 3 |
5 files changed, 7 insertions, 10 deletions
@@ -4,10 +4,6 @@ * Support IE11 (stretch: IE10) * < 6k in .min.gz form -## Launch TODOS - -* Move to development branch - ## Post-Launch TODOS * Clean up event naming diff --git a/src/kutty.js b/src/kutty.js index dbf16f8f..dee25f72 100644 --- a/src/kutty.js +++ b/src/kutty.js @@ -1106,8 +1106,8 @@ var kutty = kutty || (function () { } var promptQuestion = getClosestAttributeValue(elt, "kt-prompt"); if (promptQuestion) { - var prompt = prompt(promptQuestion); - if(!triggerEvent(elt, 'prompt.kutty', {prompt: prompt, target:target})) return endRequestLock(); + var promptResponse = prompt(promptQuestion); + if(!triggerEvent(elt, 'prompt.kutty', {prompt: promptResponse, target:target})) return endRequestLock(); } var confirmQuestion = getClosestAttributeValue(elt, "kt-confirm"); @@ -1117,7 +1117,7 @@ var kutty = kutty || (function () { var xhr = new XMLHttpRequest(); - var headers = getHeaders(elt, target, prompt, eventTarget); + var headers = getHeaders(elt, target, promptResponse, eventTarget); var rawParameters = getInputValues(elt, verb); var filteredParameters = filterValues(rawParameters, elt, verb); diff --git a/www/docs.md b/www/docs.md index 42c6e096..2b4758f7 100644 --- a/www/docs.md +++ b/www/docs.md @@ -351,7 +351,7 @@ will be included. If you wish to include the values of other elements, you can use the [kt-include](/attributes/kt-include) attribute with a CSS selector of all the elements whose values you want to include in the request. -If you wish to filter out some parameters you can use the [kt-parameters](/attributes/kt-parameters) attribute. +If you wish to filter out some parameters you can use the [kt-params](/attributes/kt-params) attribute. Finally, if you want to programatically modify the parameters, you can use the [configRequest.kutty](/events#configRequest.kutty) event. diff --git a/www/examples.md b/www/examples.md index c35df5a3..580b1812 100644 --- a/www/examples.md +++ b/www/examples.md @@ -15,7 +15,7 @@ You can copy and paste them and then adjust them for your needs. | [Bulk Update](/examples/bulk-update) | Demonstrates bulk updating of multiple rows of data | [Click To Load](/examples/click-to-load) | Demonstrates clicking to load more rows in a table | [Lazy Loading](/examples/lazy-load) | Demonstrates how to lazy load content -| [Inline Validation](/examples/inline-validation) | Demonstrates how to lazy load content +| [Inline Validation](/examples/inline-validation) | Demonstrates how to do inline field validation | [Infinite Scroll](/examples/infinite-scroll) | Demonstrates infinite scrolling of a page | [Active Search](/examples/active-search) | Demonstrates the active search box pattern | [Progress Bar](/examples/progress-bar) | Demonstrates a job-runner like progress bar diff --git a/www/examples/inline-validation.md b/www/examples/inline-validation.md index bbb96f6c..492edfa6 100644 --- a/www/examples/inline-validation.md +++ b/www/examples/inline-validation.md @@ -11,7 +11,8 @@ and updates the DOM with the validation results. We start with this form: ```html -<h3>Signup Form</h3><form ic-post-to="/contact"> +<h3>Signup Form</h3> +<form kt-post="/contact"> <div kt-target="this" kt-swap="outerHTML"> <label>Email Address</label> <input name="email" kt-post="/contact/email" kt-indicator="#ind"> |