docbrown/app/assets/javascripts
Nizar 7058d628af
Added Copy Permalink Functionality to Comment Dropdown (#8311)
* Added Copy Permalink Functionality to Comment Dropdown

Copy functionality is similar to the way 'copy article link' is implemented. It checks for the android bridge first, then the navigator, then fallsback to the default document copy command

Since the codes were really similar, I moved the copy functionality to a function of its own with callbacks and fallbacks as lambdas, and triggered it with the copyArticleLink and the copyPermalink

* Replaced Copy Permalink Callbacks with Promises

* Keep anchor tags instead of buttons (#1)

* copy permalink using anchor tag

* Missing closing button tag

* Adds 'Copied to Clipboard' Snackbar Message

* Patches bug introduced in #10323

Patch suggested in following comment: https://github.com/forem/forem/pull/8311\#pullrequestreview-492011202

* Removes import statement for addSnackbarItem and Suppresses ESLint Error

Initializer runs in global scope

* Unhandles exception when copying permalink so Honeybadger can handle it

* Replaces ButtonListener suffix for copyPermalink method with Listener

Co-authored-by: Fernando Valverde <fernando@visualcosita.com>
2020-11-11 08:32:10 -05:00
..
initializers Added Copy Permalink Functionality to Comment Dropdown (#8311) 2020-11-11 08:32:10 -05:00
lib [deploy] Rename classified listings (#7910) 2020-05-27 13:35:09 +00:00
utilities Added Copy Permalink Functionality to Comment Dropdown (#8311) 2020-11-11 08:32:10 -05:00
.eslintrc.js Replace globals with node env (#10767) 2020-10-14 17:05:38 -04:00
application.js Initial commit 2018-02-28 16:11:08 -05:00
base.js.erb [deploy] Add scroll to Anchor (#10464) 2020-10-07 12:55:57 -05:00
initializePage.js [deploy] Experiment with the removal of inline critical path css (#11027) 2020-10-22 19:22:28 -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
serviceworker-companion.js Fixed some more Frontend Lint Issues (#3792) 2019-08-23 10:21:28 -04:00