aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/app/assets/javascripts/rails-ujs/start.coffee
Commit message (Collapse)AuthorAgeFilesLines
* Read the CSP nonce on page loadGeorge Claghorn2019-03-081-0/+2
| | | Turbolinks replaces the CSP nonce <meta> tag on page change, but inline scripts inserted by UJS need the nonce from the initial page load. In general, it doesn't matter to UJS if the nonce changes after the page loads: only the initial value is relevant.
* Prevent unintended mouse keys from firing click eventsWoH2018-12-051-3/+5
| | | | | Firefox fires click events on left-, right- and scroll-wheel (any non-primary mouse key) clicks while other browsers don't.
* Throw if ujs loaded twiceKazuhiro NISHIYAMA2018-07-311-1/+2
| | | | | | | | I saw two posts of problem about ajax requesting twice on qiita. So I think detecting double loaded earlier make easy to find the problem. https://qiita.com/hot_study_man/items/56dc87ad734cfda68bb6 https://qiita.com/hisas/items/8399aec3a5377bf75017
* Check for jQuery ajaxDmitriy Plekhanov2017-05-191-1/+1
| | | jQuery slim version doesn't have ajax, so if a person include this version ajaxFilter raises error.
* Reorganize rails-ujs filesJavan Makhmali2017-03-301-0/+70