Files
nairobi/app/assets/javascripts
Javi Martín 017eeda3d4 Remove redundant call to $(document).ready()
The `$()` function is a shortcut for `$(document).ready()`, and we were
attaching events to `$(document).ready()` inside the `$()` function.

In a similar way, we were handling the `page:load` and `ajax:complete`
events inside the `$()` function. But when those events trigger, the DOM
is already ready.

Besides, we don't have to wait for the DOM to be ready before attaching
events to the `document` element. Quoting jQuery's `.on()`
documentation:

> The document element is available in the head of the document before
> loading any other HTML, so it is safe to attach events there without
> waiting for the document to be ready.

Co-Authored-By: Senén Rodero Rodríguez <senenrodero@gmail.com>
2020-08-05 11:34:57 +02:00
..
2018-09-26 12:34:16 +02:00
2020-08-04 20:32:14 +02:00
2019-09-11 14:03:24 +02:00
2019-09-11 14:03:24 +02:00
2019-11-13 19:52:15 +01:00
2019-09-11 14:03:24 +02:00
2019-09-11 14:03:24 +02:00
2019-09-11 14:03:24 +02:00
2019-09-11 14:03:24 +02:00
2019-09-11 14:03:24 +02:00
2019-09-11 14:03:24 +02:00
2019-10-30 18:48:55 +01:00
2019-09-11 14:03:24 +02:00
2019-09-11 14:03:24 +02:00
2019-09-11 14:03:24 +02:00