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});
})
.on('click', function(event) {
if(event.target.tagName != "A"){
if(event.target.tagName != "A" && event.target.tagName != "INPUT"){
console.log("Corpus : click", event);
event.preventDefault();
if(_node_hover_id != -1){
@@ -348,7 +348,7 @@
// console.log("Mouse pos: ", {x:_m_pos.x, y:_m_pos.y});
})
.on('click', function(event) {
if(event.target.tagName != "A"){
if(event.target.tagName != "A" && event.target.tagName != "INPUT"){
console.log("Corpus : click", event);
event.preventDefault();
if(_node_hover_id != -1){
@@ -66,6 +66,8 @@ class BlockEntrees extends BlockBase {
$description = $term->get('description')->value;
// dpm($description);
// TODO: output block through twig and preprocess function
// TODO: load corpus map libraries only with this block
$entree = array(
'#wrapper_attributes' => array(
'class' => array('term-'.$term->id(), 'entree'),