core icon indicating copy to clipboard operation
core copied to clipboard

Cannot close pdf-view

Open cyberdaemon opened this issue 13 years ago • 20 comments

Expected behaviour

Close PDF View in OC Webgui

Actual behaviour

PDF View cannot be closed. It´s supposed to be a cross button to close the view but it´s missing.

Steps to reproduce

  1. open pdf file in OC webgui

Server configuration

Operating system: Centos 5.9

Web server: Apache 2.2.3

Database:MySQL 5.0

PHP version:5.4

ownCloud version:5.0

Client configuration

Browser:Chrome 25

Operating system:Windows 7

Logs

Web server error log

Check screenshot

ownCloud log (data/owncloud.log)


Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

cyberdaemon avatar Mar 15 '13 13:03 cyberdaemon

owncloud_pdfviewer

cyberdaemon avatar Mar 15 '13 13:03 cyberdaemon

@Raydiation Can you have a look perhaps? :-)

karlitschek avatar Mar 15 '13 14:03 karlitschek

@cyberdaemon thanks for the great report and the screenshot! At first I thought it was the header overflowing, but actually the x button just seems to not be there.

@DeepDiver1975 any chance you can look into this?

jancborchardt avatar Mar 15 '13 15:03 jancborchardt

in "files_pdfviewer/templates/pdf.php" after line 112 these lines are missing:

<button id="close" class="toolbarButton close" onclick="window.parent.hidePDFviewer();" title="Close" tabindex="15" data-l10n-id="close"><span data-l10n-id="close_label">Close</span></button>

now i only need to find the cross icon... but with this fix it is possible to close the pdf

but the problem seems to be, that the next pdf you want to open just gets downloaded

miicha avatar Mar 15 '13 23:03 miicha

Actually this should live in the apps repo.

DeepDiver1975 avatar Mar 16 '13 12:03 DeepDiver1975

@miicha please submit a pull request in the apps repo. I'm about to retire from maintaining th pdf viewer. If you are interested to take over you are more than welcome.

The close button was there in the past. Search the history to find out made it disappear.

Thx

DeepDiver1975 avatar Mar 16 '13 12:03 DeepDiver1975

@miicha would be awesome if you can do that and contribute! Let me know if you need any help. You can find the code in the files_pdfviewer folder of the apps repository: https://github.com/owncloud/apps/tree/master/files_pdfviewer

jancborchardt avatar Mar 16 '13 13:03 jancborchardt

I'd like to do that, but in the next week I have to do a lot of other things so I don't know if I can find some time. If somebody else fixes that before, I'm sure there are plenty of things/bugs I can have a look at...

miicha avatar Mar 16 '13 18:03 miicha

I think I haven't done everything right regarding github (do I really have to open one pull requests for every file I change?) so I want to apologize for it. I just reimplemented the close button and created three pull requests in the apps repo: https://github.com/owncloud/apps/pull/905 https://github.com/owncloud/apps/pull/906 https://github.com/owncloud/apps/pull/907

miicha avatar Mar 29 '13 14:03 miicha

Not necessarily for each file, but a separate branch and PR for each fix/feature.

tanghus avatar Mar 29 '13 14:03 tanghus

@miicha can you please fork the repository, then clone it to your computer and make the changes there, in one commit, and then issue one pull request? That makes it a lot easier to test and cleaner. Thanks!

jancborchardt avatar Mar 29 '13 20:03 jancborchardt

I´m afraid this issue isn´t fix in 5.0.4. can anyone confirm this?

cyberdaemon avatar Apr 11 '13 18:04 cyberdaemon

@cyberdaemon this isn't fixed at all yet, but will be soon … See the issues jancborchardt referenced

Niduroki avatar Apr 12 '13 05:04 Niduroki

OK, thank you. But if the issue isn´t fix why is the issue closed here?

cyberdaemon avatar Apr 16 '13 19:04 cyberdaemon

I'm now on 5.0.8 and I'm still not able to close pdf view. Why was this bug marked as fixed?

XueSheng-GIT avatar Jul 11 '13 13:07 XueSheng-GIT

Yeah, thats what i´ve asked too. Since this bug was marked as closed nobody fixed it.

cyberdaemon avatar Jul 11 '13 14:07 cyberdaemon

Can someone get on this, @owncloud/designers? I’m busy with other stuff at the moment. :\

jancborchardt avatar Jul 11 '13 16:07 jancborchardt

First of all this belongs to owncloud/apps …

Second owncloud/apps#1068 should readd the closebutton for master. But as one may see there are some discrepancies in named PR on how to fix this, thus it got stalled.

Niduroki avatar Jul 11 '13 18:07 Niduroki

Furthermore this is a duplicate of owncloud/apps#1122 owncloud/apps#945 owncloud/apps#937 and owncloud/apps#887.

I'll make a backport PR to stable5 of:

  • https://github.com/owncloud/apps/commit/4c430ea6d89c423321d1550e473811c682eb2071
  • https://github.com/owncloud/apps/commit/9ff8b0a2801412a14483f40e9766732441231c17
  • https://github.com/owncloud/apps/commit/2aece39c29f21f3a6ab8b7f8556de0b49e388dba

since requests become way to much …

Niduroki avatar Jul 11 '13 18:07 Niduroki

Closing this, since owncloud/apps#1202 is merged, thus will be in 5.0.9

Niduroki avatar Jul 12 '13 10:07 Niduroki