Commit Graph

8 Commits

Author SHA1 Message Date
Andrew Ozz 82998d74a4 Heartbeat: don't connect when a response is not expected by any script (nothing to send), remove debug logging, clean up code formatting, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@24268 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-15 23:17:51 +00:00
Sergey Biryukov d60a0b3dfe Fix typo in heartbeat.js. see #23216.
git-svn-id: https://develop.svn.wordpress.org/trunk@24139 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-29 20:29:10 +00:00
Andrew Ozz 28a928ddb1 Autosave: use heartbeat to determine when connection is lost and disable the Save and Publish buttons. Re-enable the buttons when connection is restored. Props dh-shredder, see #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23886 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-02 22:51:09 +00:00
Andrew Ozz ec5c661c7d Heartbeat: improve setting the errorstate, add ajaxurl to the settings object when loading on the front-end, some code cleanup, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23882 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-30 23:32:12 +00:00
Andrew Ozz 9b691a21b0 Heartbeat API: add nopriv actions, add JS 'heartbeat-send' event, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23481 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 02:32:22 +00:00
Andrew Ozz b38675a65a Heartbeat API: fix error in IE < 9, props SergeyBiryukov, don't attempt to bind events to cross-domain iframes, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23389 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-06 07:10:04 +00:00
Andrew Ozz 682b66b560 Heartbeat API: throttle down when the window looses focus or when the user is inactive, always send 'screen_id', change the interval settings to 'fast' (5sec), 'standard' (15sec) and 'slow' (60sec), the interval can be changed from PHP, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23382 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-03 07:03:27 +00:00
Andrew Ozz 5edc6b2711 Heartbeat API: first run, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23355 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-29 06:15:25 +00:00