Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-19Fix problem where mobile.css did not get used for subsequent document editsTor Lillqvist
The code in the onEdit function wants to take our stylesheet mobile.css into use, and the code in the onClose function correspondingly removes it from use. In onEdit, we used to call the OC.addStyle function to take the stylesheet into use. That function uses an internal cache of the pathnames of stylesheets in use. The way we remove the stylesheet from use in onClose does not affect that cache (the loadedStyles variable in Nextcloud server's core/src/OC/legacy-loader.js). Thus, after a Nextcloud document browsing page is loaded, when editing the first document, everything goes as planned: The stylesheet is taken into use and it works as expected: In narrow windows (i.e. mainly on mobile devices) the blue Nextcloud header is not displayed. When the document is closed, the stylesheet is removed. But when the next document is edited, the OC.addStyle function thinks that the stylesheet is in use and does nothing. This change avoids using OC.addStyle and instead adds the stylesheet using plain Javascript. Signed-off-by: Andras Timar <andras.timar@collabora.com>
2020-06-08Check for read permission on the file actionsJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-05-29Do not check for capabilities during load though proxyJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-05-22Basic viewer integrationJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>