Cannot close pdf-view
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
- 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) ...
@Raydiation Can you have a look perhaps? :-)
@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?
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
Actually this should live in the apps repo.
@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
@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
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...
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
Not necessarily for each file, but a separate branch and PR for each fix/feature.
@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!
I´m afraid this issue isn´t fix in 5.0.4. can anyone confirm this?
@cyberdaemon this isn't fixed at all yet, but will be soon … See the issues jancborchardt referenced
OK, thank you. But if the issue isn´t fix why is the issue closed here?
I'm now on 5.0.8 and I'm still not able to close pdf view. Why was this bug marked as fixed?
Yeah, thats what i´ve asked too. Since this bug was marked as closed nobody fixed it.
Can someone get on this, @owncloud/designers? I’m busy with other stuff at the moment. :\
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.
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 …
Closing this, since owncloud/apps#1202 is merged, thus will be in 5.0.9