minor imporvements

This commit is contained in:
Bachir Soussi Chiadmi
2018-01-06 18:44:00 +01:00
parent 057a3a3171
commit 05e3ada7fd
5 changed files with 9 additions and 7 deletions
@@ -348,7 +348,7 @@
// console.log("Mouse pos: ", {x:_m_pos.x, y:_m_pos.y}); // console.log("Mouse pos: ", {x:_m_pos.x, y:_m_pos.y});
}) })
.on('click', function(event) { .on('click', function(event) {
if(event.target.tagName != "A"){ if(event.target.tagName != "A" && event.target.tagName != "INPUT"){
console.log("Corpus : click", event); console.log("Corpus : click", event);
event.preventDefault(); event.preventDefault();
if(_node_hover_id != -1){ if(_node_hover_id != -1){
@@ -348,7 +348,7 @@
// console.log("Mouse pos: ", {x:_m_pos.x, y:_m_pos.y}); // console.log("Mouse pos: ", {x:_m_pos.x, y:_m_pos.y});
}) })
.on('click', function(event) { .on('click', function(event) {
if(event.target.tagName != "A"){ if(event.target.tagName != "A" && event.target.tagName != "INPUT"){
console.log("Corpus : click", event); console.log("Corpus : click", event);
event.preventDefault(); event.preventDefault();
if(_node_hover_id != -1){ if(_node_hover_id != -1){
@@ -66,6 +66,8 @@ class BlockEntrees extends BlockBase {
$description = $term->get('description')->value; $description = $term->get('description')->value;
// dpm($description); // dpm($description);
// TODO: output block through twig and preprocess function
// TODO: load corpus map libraries only with this block
$entree = array( $entree = array(
'#wrapper_attributes' => array( '#wrapper_attributes' => array(
'class' => array('term-'.$term->id(), 'entree'), 'class' => array('term-'.$term->id(), 'entree'),
@@ -40,12 +40,12 @@ main[role="main"] {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; } overflow: hidden; }
main[role="main"] .layout-content > * {
pointer-events: auto; }
main[role="main"] .layout-content, main[role="main"] .region-content, main[role="main"] #block-edlptheme-content { main[role="main"] .layout-content, main[role="main"] .region-content, main[role="main"] #block-edlptheme-content {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; } overflow: hidden; }
main[role="main"] .kint {
pointer-events: auto; }
footer[role="contentinfo"] { footer[role="contentinfo"] {
position: fixed; position: fixed;
@@ -32,13 +32,13 @@ main[role="main"]{
padding:7em 2em 9em; padding:7em 2em 9em;
width:100%; height:100%; width:100%; height:100%;
overflow: hidden; overflow: hidden;
.layout-content>*{
pointer-events: auto;
}
.layout-content, .region-content, #block-edlptheme-content{ .layout-content, .region-content, #block-edlptheme-content{
width: 100%; height:100%; width: 100%; height:100%;
overflow:hidden; overflow:hidden;
} }
.kint{
pointer-events: auto;
}
} }
footer[role="contentinfo"]{ footer[role="contentinfo"]{