Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update to rails-ujs documentation for yarn install | Adrian Stainforth | 2017-05-26 | 1 | -0/+10 |
| | |||||
* | Update test link in ActionView javascripts README.md. | Josef Šimánek | 2017-05-22 | 1 | -1/+1 |
| | | | [ci skip] | ||||
* | Fix mistake in JS response parser: | Dmytro Vasin | 2017-04-13 | 1 | -3/+3 |
| | | | | | | - 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 | -0/+1 |
| | |||||
* | Reorganize rails-ujs files | Javan Makhmali | 2017-03-30 | 13 | -104/+104 |
| | |||||
* | Fix link to rails-ujs | Ryunosuke Sato | 2017-03-30 | 1 | -1/+1 |
| | | | | | https://github.com/rails/rails-ujs is merged into actionview in favor of https://github.com/rails/rails/pull/28098. [skip ci] | ||||
* | Prevent event propogation if element is disabled when event chain begins. | Patrick Toomey | 2017-03-09 | 2 | -1/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Move rails-ujs README and LICENCE to actionview | Rafael Mendonça França | 2017-02-22 | 2 | -0/+69 |
| | | | | We are going to make rails/rails the official repository | ||||
* | Import rails-ujs v0.1.0 from rails/rails-ujs | Guillermo Iguaran | 2017-02-20 | 5 | -51/+12 |
| | |||||
* | s/an/a/ | Akira Matsuda | 2017-01-26 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | Add rails-ujs to Action View | Guillermo Iguaran | 2016-11-26 | 11 | -0/+600 |