Behoben Admin

Fixed Magpie's own news email and Changelog editors losing work on a page left open

Internal: the admin editors for news emails and Changelog entries no longer lose text on a page left open for hours, and a stopped news email copy is never sent afterwards.

For Magpie's staff only.

News emails:

  • A draft left open for hours keeps saving: the page gets fresh button codes and form tokens by itself, before they run out and once more when a save is refused for one.
  • Text changed in another tab or by another admin is no longer written over by an older page; the page says so and keeps its text.
  • Text not yet saved is kept in the browser and put back when the page opens again.
  • A subject typed with the cursor still in its field is saved when the page closes, and a page brought back with Back saves again.
  • Send, Delete draft and Stop waiting copies work on a page open for more than 30 minutes.
  • Stop waiting copies also stops a copy that was being sent at that moment: if that send fails, it is not tried again.
  • Send now keeps working after a failed press, and New email makes one draft on a double click.

Changelog editor:

  • A Save refused because its button expired, was used or the session's form token ran out keeps everything typed.
  • A Save from a page drawn before someone else's save is refused instead of writing over it; pressing Save again replaces it on purpose.
  • A double click on Save saves once, and a title with no letters a to z says to type a Public address.