docbrown/app/assets/javascripts
Yash Dave 49fbf280c3 Refactor initializeArticleReactions.js (#4303)
* Refactor initializeArticleReactions.js
- Refactors file according to eslint rules
- Add showModal and sendHapticMessage to globals
  in eslintrc.js
- Shorten initializeArticleReactions() by distributing
  parts of it into jumpToComments() and requestReactionCounts()
- requestReactionCounts() makes an ajax request to get the
  reaction counts
- jumpToComments() jumps to comments element directly if the
  element jump-to-comments is present

* Fix reactionOnClick function to work correctly
- Move sendHapticMessage and showModal global declaration to file
- name function on reaction button on click as addReactionOnClick
  which then calls reactToArticle()
2019-10-08 08:41:43 -04:00
..
initializers Refactor initializeArticleReactions.js (#4303) 2019-10-08 08:41:43 -04:00
lib Fix js-breaking webcomponent (#3087) 2019-06-10 11:23:42 -04:00
utilities Refactoring sendFetch.jsx removes code duplication (#4157) 2019-10-01 17:03:47 -04:00
.eslintrc.js Fix JS Lints (#3815) 2019-08-26 18:01:12 -04:00
application.js Initial commit 2018-02-28 16:11:08 -05:00
base.js.erb Fix js-breaking webcomponent (#3087) 2019-06-10 11:23:42 -04:00
hello-dev.js Format console copy (#3888) [ci skip] 2019-09-03 15:59:12 -04:00
initializePage.js.erb Add new mod links and tooling (#4009) 2019-09-12 00:11:01 -04:00
internal.js Initial commit 2018-02-28 16:11:08 -05:00
jquery_s3_upload.js [WIP] Add super beta video upload (#277) 2018-05-03 16:27:52 -04:00
manifest.json.erb Use maskable icons for PWA (#3875) [ci skip] 2019-08-29 18:44:26 -04:00
serviceworker-companion.js Fixed some more Frontend Lint Issues (#3792) 2019-08-23 10:21:28 -04:00
serviceworker.js.erb Update Service Worker and Favicon (#3142) 2019-06-13 11:39:03 -04:00