diff --git a/locallib.php b/locallib.php
index 9a869421146fd0218f022d31add93fcbbc3223dc..1b2ff262502e97ebbe691e0d103202de37b10e51 100644
--- a/locallib.php
+++ b/locallib.php
@@ -63,7 +63,7 @@ function pdfannotator_display_embed($pdfannotator, $cm, $course, $file, $page =
// Load and execute the javascript files.
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/pdf.js?ver=00002"));
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/textclipper.js"));
- $PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/index.js?ver=00027"));
+ $PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/index.js?ver=00028"));
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/locallib.js?ver=00005"));
// Pass parameters from PHP to JavaScript.
diff --git a/shared/index.js b/shared/index.js
index 0a3d98b850ad5cbdf33ab74462d1ba644e65498d..a4b485c782352084316dd95cc3e73d8c1239fcd9 100644
--- a/shared/index.js
+++ b/shared/index.js
@@ -121,14 +121,6 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to
};
/* *********************** eigener Store Adapter!! **********************************/
- var setTimeoutNotification = () => {
- setTimeout(function(){
- let notificationpanel = document.getElementById("user-notifications");
- while (notificationpanel.hasChildNodes()) {
- notificationpanel.removeChild(notificationpanel.firstChild);
- }
- }, 10000);
- }
let MyStoreAdapter = new _2.default.StoreAdapter({
/**
* This function get all annotations of a specific document on a specific page.
@@ -195,7 +187,6 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to
if (data.log){
console.error(data.log);
}
- setTimeoutNotification();
}
return {'status':'error'};
});
@@ -264,7 +255,6 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to
type: "error"
});
}
- setTimeoutNotification();
return data;
});
@@ -303,7 +293,6 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to
type: "error"
});
}
- setTimeoutNotification();
});
},
@@ -397,7 +386,6 @@ function startIndex(Y,_cm,_documentObject,_contextId, _userid,_capabilities, _to
type: "error"
});
}
- setTimeoutNotification();
return data;
});
}