diff options
| author | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2021-07-22 16:07:19 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2021-07-22 16:19:12 +0200 |
| commit | a3da1483a9e689846179159355badfec8073dbec (patch) | |
| tree | 770dcca6bdf5f6f2a11b0e7fcbbeda6919a3fc52 /resources/assets/javascripts/bootstrap/jsupdater.js | |
current code from svn, revision 62608
Diffstat (limited to 'resources/assets/javascripts/bootstrap/jsupdater.js')
| -rw-r--r-- | resources/assets/javascripts/bootstrap/jsupdater.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/assets/javascripts/bootstrap/jsupdater.js b/resources/assets/javascripts/bootstrap/jsupdater.js new file mode 100644 index 0000000..9fbcd0e --- /dev/null +++ b/resources/assets/javascripts/bootstrap/jsupdater.js @@ -0,0 +1,10 @@ +// Start js updater if global settings says so +$(window).on('load', function() { + if (STUDIP.jsupdate_enable) { + STUDIP.JSUpdater.start(); + } +}); + +// Try to stop js updater if window is unloaded (might not work in all +// browsers) +$(window).on('unload', STUDIP.JSUpdater.stop); |
