mirror of
https://github.com/Yetangitu/owncloud-apps.git
synced 2025-10-02 14:49:17 +02:00
OC8 port, 'should be compatible' with OC7 - please test...
Reader: ported to appframework, new version of epub.js
This commit is contained in:
parent
ba221c1d61
commit
c4d1ace999
50 changed files with 653 additions and 6064 deletions
|
@ -42,12 +42,10 @@ function delCSSRule(sheet, selector) {
|
|||
|
||||
document.onreadystatechange = function () {
|
||||
if (document.readyState == "complete") {
|
||||
// enable (large-screen) or hide (mobile/small-screen) close button
|
||||
if (parent.READER == undefined) {
|
||||
$('#close').hide();
|
||||
} else {
|
||||
$('#close').on('click', function() { reader.book.destroy(); parent.READER.hideReader(); });
|
||||
parent.READER.hideControls();
|
||||
// only enable close button when launched in an iframe
|
||||
if (parent !== window) {
|
||||
$('#close').show();
|
||||
$('#close').on('click', function() { reader.book.destroy(); parent.OCA.FilesReader.Plugin.hide(); });
|
||||
}
|
||||
|
||||
// some parameters...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue