Fix deprecated Javascript calls

This commit is contained in:
Alfred Egger 2021-04-02 17:37:26 +02:00
parent 0c94787921
commit 18c9697287
3 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
$(document).ready(function(){
window.addEventListener('DOMContentLoaded', function () {
// save settings
var readerSettings = {
save : function() {
@ -19,4 +19,3 @@ $(document).ready(function(){
$('#PdfEnable').on("change", readerSettings.save);
$('#CbxEnable').on("change", readerSettings.save);
});

View File

@ -143,7 +143,7 @@
OC.Plugins.register('OCA.Files.FileList', OCA.Epubreader.Plugin);
// FIXME: Hack for single public file view since it is not attached to the fileslist
$(document).ready(function(){
window.addEventListener('DOMContentLoaded', function () {
if ($('#isPublic').val()
&& ($('#mimetype').val() === 'application/epub+zip'
|| $('#mimetype').val() === 'application/pdf'

View File

@ -1,4 +1,4 @@
$(document).ready(function(){
window.addEventListener('DOMContentLoaded', function () {
// save settings
var readerSettings = {
save : function() {