docbrown/app/assets/javascripts
Daniel Uber dc35f8ed24
Remove optional chaining syntax from comments page initializer (#15277)
* Remove questionable syntax from comments initializer

Not sure what ?. is, changing to . to placate the asset precompiler

* Restore conditional access

Rather than changing the ?. to ., wrap the chained access in a guard
clause.

* Fix error in logic

First pass had wrapped this in an "if currentUser" which caused the
else block only to hide comments when no user was logged in, however
the actual behavior should have been to hide comments unless current
user was an article author.
2021-11-03 12:04:28 -05:00
..
initializers Remove optional chaining syntax from comments page initializer (#15277) 2021-11-03 12:04:28 -05:00
lib Fix hamburger menu scrolling (#15000) 2021-10-18 20:51:46 -04:00
utilities fix: accessibility issue with feeds comment section (#14958) 2021-10-07 17:01:42 +01:00
.eslintrc.js Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00
base.js.erb Do not display skip link on mobile search page (#14999) 2021-10-11 10:02:18 -04:00
initializePage.js Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00
jquery_s3_upload.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00