Thanks listens to a hook fired by Revision Slider on diff reload
(added in I02a8736d00e6560d0807888c957b0e9aa3e80bb8).
Bug: T142636
Change-Id: I0e6c0072a9fe46c02b8ccbe528a9b87f0381bd65
"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
Thanks has an implicit dependency on jquery.findWithParent.
It often fails because it is not yet loaded.
Adding it locally so it is self-contained. It is not
Flow's responsibility to provide such low-level utilities
to other extensions.
Bug: T116146
Change-Id: Id74e77b5fb81d5da8cb6dd97fd1b90e5d974ae82
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
Also adding a helpful comment.
Leaving existing mw-mf-action-button class for now since this
provides the float left. Eventually we should migrate the styles
in MobileFrontend to use mw-ui-button as well and reduce the
redundant styles that are set. See also:
Change I59e8441f4c4e1d33bff33afcab6c6670d7b99634
Bug: 61490
Change-Id: I7e14b8eb522d8d7443fa917d97cb91773c6410f0
If the user has already been thanked, make the button greyed out
and display the text "Thanked" instead of "Thank".
Dependency: Ife9f456a7a9cf74b1b54fdc6128feb230fd6f671
Bug: 59828
Change-Id: Ifab78fe62910c9c3f2a927a6a4bbe28fb953b160
Also making thank button for mobile capitalized.
Also update for new clickTracking code.
Also promoting to stable.
Dependency: I56e2c5bc69f85e83ab3dfd9b9e617dbb98661870
Change-Id: Ifaf44fe8994a8085c30522292bba8b768da533db
It's a reserved word, old IEs see this and bail. (Conforming browsers
correctly see it's an object key and parse the literal.)
Reported on the English Wikipedia's WP:VPT.
Change-Id: I7a032afc6d62d09a5ec32c7c8d0af5611665ea59
If the new $wgThanksConfirmationRequired global variable is true,
require users to confirm that they want to send thanks.
Bug: 47658
Change-Id: I4663844a324a2797917b027ceb1c8c07b1e180d5
Thanked revision to be stored both server side in the session and client side
in a cookie. Thanked revisions found in either storage solution will replace
their 'thank' link with the string 'thanked'.
Bug: 46690
Change-Id: I976cd8fbf00856c67b77daeb0d0a952efb371661