Commit 552233b2 authored by Leigh B Stoller's avatar Leigh B Stoller

A few more little fixes for bugs Mike found.

parent 67b2f154
...@@ -528,6 +528,8 @@ $(function () ...@@ -528,6 +528,8 @@ $(function ()
row.find('.delete-cluster') row.find('.delete-cluster')
.removeClass("hidden") .removeClass("hidden")
.click(function (event) { .click(function (event) {
// Kill tooltips since they get left behind if visible.
row.find('[data-toggle="tooltip"]').tooltip('destroy');
row.remove(); row.remove();
if ($('#cluster-table tbody').length == 1) { if ($('#cluster-table tbody').length == 1) {
$('#cluster-table .delete-cluster').hide(); $('#cluster-table .delete-cluster').hide();
...@@ -539,6 +541,7 @@ $(function () ...@@ -539,6 +541,7 @@ $(function ()
$('#cluster-table .add-cluster').not(":last").hide(); $('#cluster-table .add-cluster').not(":last").hide();
} }
modified_callback(); modified_callback();
}); });
if ($('#cluster-table tbody').length == 1) { if ($('#cluster-table tbody').length == 1) {
...@@ -612,6 +615,8 @@ $(function () ...@@ -612,6 +615,8 @@ $(function ()
row.find('.delete-range') row.find('.delete-range')
.removeClass("hidden") .removeClass("hidden")
.click(function (event) { .click(function (event) {
// Kill tooltips since they get left behind if visible.
row.find('[data-toggle="tooltip"]').tooltip('destroy');
row.remove(); row.remove();
updateButtons(); updateButtons();
modified_callback(); modified_callback();
...@@ -1263,6 +1268,11 @@ $(function () ...@@ -1263,6 +1268,11 @@ $(function ()
continue; continue;
} }
} }
else {
// Last one, has enough nodes, just move past
// lower bound and be done.
starttime = lower;
}
} }
console.info("boop", data); console.info("boop", data);
...@@ -1925,6 +1935,8 @@ $(function () ...@@ -1925,6 +1935,8 @@ $(function ()
if (!_.has(reservations, uuid)) { if (!_.has(reservations, uuid)) {
console.info("reservation is gone: " + 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(); tbody.remove();
} }
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment