Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix mistake in JS response parser: | Dmytro Vasin | 2017-04-13 | 1 | -0/+28 |
| | | | | | | - Restore ability to accept ecmascript JS response should not modify DOM. | ||||
* | Set current page as default for ajax requests | Dmytro Vasin | 2017-04-11 | 1 | -22/+45 |
| | |||||
* | Prevent event propogation if element is disabled when event chain begins. | Patrick Toomey | 2017-03-09 | 1 | -0/+28 |
| | | | | | | | | | | | | | | | | | | | | | | | | | The existing UJS event behavior relies on browsers not sending events for various events when an element is disabled. For example, imagine the following: <button type="submit" disabled="disabled">Click me</button> The above button is disabled, so browsers will not trigger a click event and all UJS behavior is prevented. However, imagine a button like this: <button type="submit" disabled="disabled"><strong>Click me</strong></button> The above is treated differently by browsers such as Chrome/Safari. These browsers do not consider the strong tag to be disabled, and will trigger click events. UJS has logic to walk up the DOM to find an associated element subject to UJS behavior. But, this logic does not take into account the disabled status of the element. I originally thought we could simply change the selectors used to match elements to ignore disabled elements. However, UJS disables some elements as part of the event chain. So, an element might match early in the chain and then fail to match later. Instead of changing the selectors I added a callback to the chain that calls `stopEverything` if an element is disabled when the event chain begins. | ||||
* | Test rails-ujs in our travis matrix | Rafael Mendonça França | 2017-02-22 | 4 | -68/+7 |
| | |||||
* | Import rails-ujs v0.1.0 from rails/rails-ujs | Guillermo Iguaran | 2017-02-20 | 6 | -204/+23 |
| | |||||
* | Correct spelling | Benjamin Fleischer | 2017-02-05 | 1 | -1/+1 |
| | | | | | | | ``` go get -u github.com/client9/misspell/cmd/misspell misspell -w -error -source=text . ``` | ||||
* | s/an/a/ | Akira Matsuda | 2017-01-26 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | Fix Rubocop violations and fix documentation visibility | Rafael Mendonça França | 2016-12-28 | 2 | -15/+15 |
| | | | | | | Some methods were added to public API in 5b14129d8d4ad302b4e11df6bd5c7891b75f393c and they should be not part of the public API. | ||||
* | stop using removed `render :text` | yuuji.yaginuma | 2016-12-03 | 1 | -1/+1 |
| | | | | Follow up to 79a5ea9eadb4d43b62afacedc0706cbe88c54496 | ||||
* | Add UJS tests | Guillermo Iguaran | 2016-11-26 | 20 | -0/+5266 |