]> git.parisson.com Git - telemeta.git/commitdiff
revert changes
authorYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 19 May 2020 09:31:52 +0000 (11:31 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 19 May 2020 09:31:52 +0000 (11:31 +0200)
telemeta/static/telemeta/js/application.js

index 31dc7c342512c3aefd8e474f80ca8b87a60165ed..0b73df4cf11eac1a2c85ceb06bff40828ba7308c 100644 (file)
@@ -289,23 +289,6 @@ var json_sync = function (param, method, onSuccessFcn, onErrorFcn) {
 
 };
 
-function onLoadSeminar(seminarId, username) {
-    // send a request when user load a seminar
-    json([seminarId, username], 'teleforma.seminar_load', function () { return null; });
-}
-
-function onUnloadSeminar(seminarId, username) {
-    try {
-        var params = JSON.stringify({ "id": "jsonrpc", "params": [seminarId, username], "method": "teleforma.seminar_unload", "jsonrpc": "1.0" })
-        navigator.sendBeacon("json/", params);
-    }
-    catch {
-        // compatibility with old navigators
-        json_sync([seminarId, username], 'teleforma.seminar_unload', function () { return null; });
-    }
-}
-
-
 
 /**
  * function for writing to the console. Catches errors, if any (eg, console == undefined) and does nothing in case