mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-18 11:04:33 +08:00
Add handling of popups in the end of the table [SCI-855]
This commit is contained in:
parent
fb49ce8be2
commit
96a9857dec
1 changed files with 3 additions and 0 deletions
|
@ -356,6 +356,7 @@ function initHeaderTooltip() {
|
|||
$('.modal-tooltip').hover(function() {
|
||||
var $tooltip = $(this).find('.modal-tooltiptext');
|
||||
var offsetLeft = $tooltip.offset().left;
|
||||
(offsetLeft + 200) > $(window).width() ? offsetLeft -= 150 : offsetLeft;
|
||||
var offsetTop = $tooltip.offset().top;
|
||||
$('body').append($tooltip);
|
||||
$tooltip.css('background-color', '#d2d2d2');
|
||||
|
@ -1103,6 +1104,7 @@ function changeToEditMode() {
|
|||
li.removeClass('col-invisible');
|
||||
column.visible(true);
|
||||
table.setColumnSearchable(column.index(), true);
|
||||
initHeaderTooltip();
|
||||
}
|
||||
|
||||
// Re-filter/search if neccesary
|
||||
|
@ -1162,6 +1164,7 @@ function changeToEditMode() {
|
|||
.html(generateColumnNameTooltip(newName));
|
||||
|
||||
cancelEditMode();
|
||||
initHeaderTooltip();
|
||||
},
|
||||
error: function(xhr) {
|
||||
dropdownList.sortable('disable');
|
||||
|
|
Loading…
Add table
Reference in a new issue