improved node popup placement with corpus evolution_zone, fix #540

This commit is contained in:
2019-12-02 16:40:40 +01:00
parent b645a5e3ee
commit 4433431b9c
4 changed files with 33 additions and 14 deletions
@@ -71,7 +71,6 @@
.on('submit', onSubmitLogForm)
.addClass('ajax-enabled');
};
function onSubmitLogForm(e){
e.preventDefault();
// console.log('onSubmitLogForm', e);
@@ -83,7 +82,6 @@
logIn(args).then(getStudioLinkBlock);
return false;
};
function logIn(args){
console.log('logIn', args);
_$log_form.addClass('ajax-loading');
@@ -110,7 +108,6 @@
}
});
};
function getStudioLinkBlock(){
var path = _origin+_base_url+'edlp/ajax/blocks/json/';
$.getJSON(path+"studiolinkblock", {})
@@ -119,7 +116,6 @@
console.warn('Studio ink block load failed', jqxhr.responseText);
});
};
function onStudioLinkBlockLoaded(data){
console.log('onStudioLinkBlockLoaded', data);
$('#block-studiouserlogin').replaceWith(data.blocks.studiolinkblock.rendered);
@@ -587,6 +583,7 @@
};
function onCloseModal(e){
console.log("onCloseModal");
// check for theme attribute and emmit event
var $col = $(this).parents('.col');
var theme = $col.attr('theme');
@@ -1824,7 +1821,6 @@
}
}
};
function checkGridBlockHeight(){
// console.log('checkGridBlockHeight');
// if(_is_mobile) return;
@@ -1846,7 +1842,6 @@
$this.height(Math.min($this.attr('init-height'), _$row.height()));
});
};
function checkGridBlockVisible(){
// console.log('checkGridBlockVisible');
// if(_is_mobile) return;
@@ -2049,6 +2044,8 @@
_$ajaxLinks.removeClass('is-active');
_$body.trigger({'type':'all-modal-closed'});
// checkRowEmpty();
checkVisibleCorpusMapSpace();
};
function checkRowEmpty(){