Commit 58e29c59 authored by Matthieu Le Corre's avatar Matthieu Le Corre
Browse files

really fix mindmap navigation bug


Signed-off-by: Matthieu Le Corre's avatarMatthieu Le Corre <matthieu.lecorre@univ-nantes.fr>
parent c4a74659
## 1.0.3 NOT RELEASED YET
## 1.0.3 26-04-2019
### Fix
- Fix scroll problem with long file list
[#12] (https://gitlab.univ-nantes.fr/uncloud/files_readmemd/issues/12#)
- Fix Mindmap navigation break
[#10] (https://gitlab.univ-nantes.fr/uncloud/files_readmemd/issues/10#)
- Fix ui bug when using table and selecting files
[#9] (https://gitlab.univ-nantes.fr/uncloud/files_readmemd/issues/9#)
- Fix scroll problem with long file list
[#12](https://gitlab.univ-nantes.fr/uncloud/files_readmemd/issues/12#)
- Fix Mindmap navigation break
[#10](https://gitlab.univ-nantes.fr/uncloud/files_readmemd/issues/10#)
- Fix ui bug when using table and selecting files
[#9](https://gitlab.univ-nantes.fr/uncloud/files_readmemd/issues/9#)
### Changed
- Do not hide HEADER.md anymore when selecting file.
- Do not hide HEADER.md anymore when selecting file.
## 1.0.2 09-04-2019
### Added
......
......@@ -7,7 +7,7 @@
With this app you can add a header and a footer to your nextcloud directories.
This can be use to explain the goal of a directory, describe the content of a folder ...
It show README.md in the way gitlab does.]]></description>
<version>1.0.2</version>
<version>1.0.3</version>
<licence>agpl</licence>
<author mail="matthieu.lecorre@univ-nantes.fr" homepage="http://www.univ-nantes.fr">Matthieu Le Corre</author>
<namespace>ReadMeMd</namespace>
......
......@@ -126,7 +126,7 @@ OCA.ReadmeMD.App = {
// trigger on hide filetable to prevent showing in trash favorite recent ...
// we need mutationobserver for that !
var observer = new MutationObserver(
var checkForContentFiles = new MutationObserver(
function(mutations) {
mutations.forEach(function(mutation){
if (mutation.attributeName === 'class') {
......@@ -140,12 +140,53 @@ OCA.ReadmeMD.App = {
}
});
}
)
) ;
observer.observe($('#app-content-files')[0],{
checkForContentFiles.observe($('#app-content-files')[0],{
attributes: true
})
}) ;
var checkForFilestable = new MutationObserver(
function(mutations) {
mutations.forEach(function(mutation){
if (mutation.attributeName === 'class') {
if ($(mutation.target).hasClass("hidden")) {
self.header.container.addClass("hidden") ;
self.readme.container.addClass("hidden") ;
} else {
self.header.container.removeClass("hidden") ;
self.readme.container.removeClass("hidden") ;
}
}
});
}
) ;
checkForFilestable.observe($('#app-content-files')[0],{
attributes: true
}) ;
/* // trigger on data-mtime change for README & HEADER
var checkForMtime = new MutationObserver(
function(mutations) {
//console.log(mutations) ;
mutations.forEach(function(mutation){
console.log(mutation) ;
console.log(mutation.attributeName)
if (mutation.attributName === 'data-mtime')
{
console.log("Reload README") ;
}
})
}
) ;
checkForMtime.observe($('#filestable')[0],{
subtree: true,
attributes: true,
attributeFilter: ["data-mtime"]
}) ;
*/
},
/**
......
This diff is collapsed.
{
"name": "files_readmemd",
"version": "1.0.2",
"version": "1.0.3",
"description": "show README.md github style",
"main": "./js/script.js",
"repository": "https://gitlab.univ-nantes.fr/uncloud/files_readmemd.git",
......
......@@ -36,7 +36,7 @@ OCA.ReadmeMD.App = {
// trigger on hide filetable to prevent showing in trash favorite recent ...
// we need mutationobserver for that !
var observer = new MutationObserver(
var checkForContentFiles = new MutationObserver(
function(mutations) {
mutations.forEach(function(mutation){
if (mutation.attributeName === 'class') {
......@@ -50,12 +50,53 @@ OCA.ReadmeMD.App = {
}
});
}
)
) ;
observer.observe($('#app-content-files')[0],{
checkForContentFiles.observe($('#app-content-files')[0],{
attributes: true
})
}) ;
var checkForFilestable = new MutationObserver(
function(mutations) {
mutations.forEach(function(mutation){
if (mutation.attributeName === 'class') {
if ($(mutation.target).hasClass("hidden")) {
self.header.container.addClass("hidden") ;
self.readme.container.addClass("hidden") ;
} else {
self.header.container.removeClass("hidden") ;
self.readme.container.removeClass("hidden") ;
}
}
});
}
) ;
checkForFilestable.observe($('#app-content-files')[0],{
attributes: true
}) ;
/* // trigger on data-mtime change for README & HEADER
var checkForMtime = new MutationObserver(
function(mutations) {
//console.log(mutations) ;
mutations.forEach(function(mutation){
console.log(mutation) ;
console.log(mutation.attributeName)
if (mutation.attributName === 'data-mtime')
{
console.log("Reload README") ;
}
})
}
) ;
checkForMtime.observe($('#filestable')[0],{
subtree: true,
attributes: true,
attributeFilter: ["data-mtime"]
}) ;
*/
},
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment