Fix deprecated Javascript calls
This commit is contained in:
parent
0c94787921
commit
18c9697287
@ -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);
|
||||
});
|
||||
|
||||
|
@ -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'
|
||||
|
@ -1,4 +1,4 @@
|
||||
$(document).ready(function(){
|
||||
window.addEventListener('DOMContentLoaded', function () {
|
||||
// save settings
|
||||
var readerSettings = {
|
||||
save : function() {
|
||||
|
Reference in New Issue
Block a user