Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #41535


Ignore:
Timestamp:
08/02/2017 03:10:25 PM (7 years ago)
Author:
johnbillion
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41535 – Description

    initial v1  
    1 For browsers that support it, the `navigator.offline` property reliably indicates that the browser is offline (the inverse isn't true, but it doesn't matter).
     1For browsers that support it, the `navigator.online` property reliably indicates that the browser is offline (the inverse isn't true, but it doesn't matter).
    22
    3 Prior to submission of a form in the admin area (for example the post editing screen form), WordPress should check the value of `navigator.offline` and present a prompt to the user stating that they appear to be offline. They can close the prompt or, optionally, ignore it and continue with the form submission.
     3Prior to submission of a form in the admin area (for example the post editing screen form), WordPress should check the value of `navigator.online` and present a prompt to the user stating that they appear to be offline. They can close the prompt or, optionally, ignore it and continue with the form submission.
    44
    55This functionality would help prevent data loss when a user submits a form while they don't have an internet connection.