Implemented continous check for new pictures in gallery.php#260
Implemented continous check for new pictures in gallery.php#260andreknieriem merged 3 commits intoandreknieriem:masterfrom
Conversation
|
Hey and thanks for your contribution! But there's one problem: We need to detect touch and mouse events and only refresh the page if there's no activity. |
|
Thanks @andreknieriem ! Will take a look at in the evening 👍 |
- Added public function to check for pending Timeouts in core.js - Added check using that function in gallery update check
|
Hey @andi34 and @andreknieriem |
|
Thanks @EccoB ! |
Problem:
When the gallery is used standalone, new pictures won't be visible till the user manually refreshes the page.
Solution:
Added jQuery script that asks the server weather the database changed, if so the page will be reloaded automatically.
Implementation details: