* Don't require a jQuery element with a specific attribute
to record thanks. Instead pass in the thanked ID directly.
* In Flow, don't override the cookieName static property,
instead pass it in as an argument.
Change the static property (effectively a global) prevents
us from having multiple types of thanks on the same page.
Change-Id: Ia569f8636f070f2af69f89d7da66c9a6f9821d24
Removing csslint rather than replacing it with stylelint as there
are no CSS or LESS files in this repo.
Also bumping banana and jsonlint to latest.
Change-Id: I9ffce273f63b061e07c3fa90ab4e82b5e551aa92
"edit" type tokens have been deprecated in favour of the
more generic "csrf" type tokens.
This has been causing warnings since: 65077ede90
See also https://www.mediawiki.org/wiki/API:Tokens
Bug: T134532
Change-Id: I3ce3c1e6a40f8a21c931c77314021e2ae94e5fb7
Retrieve gender data for the thanked user for i18n message parsing
with the correct {{GENDER...}} data.
Bug: T96527
Change-Id: I14c831be51482682f2b628a15c79341a4f372c16
Removed exemptions from .jscsrc and fixed the code so jscs still passes.
Kept the exemption for disallowDanglingUnderscores because
of the naming convention for private functions in this repo.
Change-Id: I860f73394a2b92a411fe682abbb2ab0b5e1325f9
* Flow no-longer allows arbitrary html insertion, so remove
* Update ext.thanks.flowthank.js to work with thank links generated
directly by flow.
Change-Id: I8ae14352f1b177446f3696ffadd6921a5125238e
Single-topic views do not have a flow-topics wrapper, making Thanks broken
in those views.
Bug: 63205
Change-Id: I19c7d2da2d409f8c0a270600b092d504255d4111
This makes the Thank button function correctly for posts that are
dynamically loaded with JavaScript (from
http://stackoverflow.com/q/9344306)
Bug: 63205
Change-Id: If51e1801e633573c8f0814832e26d643e1237d53
ThankedLabel is inserted before the Thank link that's being clicked.
The label needs to be cloned on each insertion so it is not removed
on subsequent $.insert().
Bug: 63506
Change-Id: I8327158880cba9a141a4d9977414022173c4c8ac