From 552233b2e0cfc500b21a43b50fad48c8f9dd4a7b Mon Sep 17 00:00:00 2001 From: Leigh B Stoller Date: Thu, 17 Oct 2019 11:56:40 -0600 Subject: [PATCH] A few more little fixes for bugs Mike found. --- www/aptui/js/resgroup.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/www/aptui/js/resgroup.js b/www/aptui/js/resgroup.js index c89b448ba..55153fac7 100644 --- a/www/aptui/js/resgroup.js +++ b/www/aptui/js/resgroup.js @@ -528,6 +528,8 @@ $(function () row.find('.delete-cluster') .removeClass("hidden") .click(function (event) { + // Kill tooltips since they get left behind if visible. + row.find('[data-toggle="tooltip"]').tooltip('destroy'); row.remove(); if ($('#cluster-table tbody').length == 1) { $('#cluster-table .delete-cluster').hide(); @@ -539,6 +541,7 @@ $(function () $('#cluster-table .add-cluster').not(":last").hide(); } modified_callback(); + }); if ($('#cluster-table tbody').length == 1) { @@ -612,6 +615,8 @@ $(function () row.find('.delete-range') .removeClass("hidden") .click(function (event) { + // Kill tooltips since they get left behind if visible. + row.find('[data-toggle="tooltip"]').tooltip('destroy'); row.remove(); updateButtons(); modified_callback(); @@ -1263,6 +1268,11 @@ $(function () continue; } } + else { + // Last one, has enough nodes, just move past + // lower bound and be done. + starttime = lower; + } } console.info("boop", data); @@ -1925,6 +1935,8 @@ $(function () if (!_.has(reservations, uuid)) { console.info("reservation is gone: " + uuid); + // Kill tooltips since they get left behind if visible. + tbody.find('[data-toggle="tooltip"]').tooltip('destroy'); tbody.remove(); } }); -- 2.22.0