mediawiki-extensions-Discus.../modules
Bartosz Dziewoński 6f404e5ce2 Rebuild Parsoid document before attempting to save
Previously, we only built the Parsoid document once (on page load) and
kept it around forever. Every time we tried to post a reply, it was
added to this document, even if it wasn't saved due to some error.
This resulted in duplicate replies when the user managed to actually
save.

Now we only keep around the HTML string and some metadata fetched from
the API, and rebuild the actual document every time before adding a
reply.

Bug: T245333
Change-Id: Ib1c344a7d613cdf67644aa243147c5e699c2c1e7
2020-02-15 05:09:34 +01:00
..
lib Handle timestamps in daylight saving time 2019-10-22 16:33:21 +02:00
.eslintrc.json build: Update linters 2019-10-28 12:29:56 +00:00
CommentTarget.js Option to integrate VisualEditor instead of textarea 2020-01-07 22:15:03 +00:00
CommentTargetWidget.js Option to integrate VisualEditor instead of textarea 2020-01-07 22:15:03 +00:00
CommentTargetWidget.less Option to integrate VisualEditor instead of textarea 2020-01-07 22:15:03 +00:00
controller.js Rebuild Parsoid document before attempting to save 2020-02-15 05:09:34 +01:00
dt.debug.js Re-add debug highlighter 2019-10-24 23:21:40 +02:00
dt.init.js Fix re-initialization after page is updated 2020-01-04 18:49:55 +01:00
dt.init.less Merge "Highlight comment after saving" 2019-12-03 16:49:01 +00:00
dt.ui.ReplyWidget.js Rebuild Parsoid document before attempting to save 2020-02-15 05:09:34 +01:00
dt.ui.ReplyWidget.less Re-style preview 2020-02-08 00:13:41 +00:00
dt.ui.ReplyWidgetPlain.js Merge "ReplyWidget: Handle save errors" 2020-01-29 20:51:50 +00:00
dt.ui.ReplyWidgetVisual.js Merge "ReplyWidget: Handle save errors" 2020-01-29 20:51:50 +00:00
highlighter.css Rename the lines denoting child comments in debug mode to "rulers" 2020-02-10 22:14:38 +01:00
highlighter.js Improve comment ruler drawing in debug mode when indentation is weird 2020-02-11 02:32:32 +01:00
modifier.js Pick reply insertion point based on parser tree, not DOM tree 2020-01-23 21:13:12 +01:00
parser.js Stop using native Range objects, they're too annoying 2020-02-05 19:42:03 +01:00