web/origin-manager: scroll to value after selecting.

Useful in main lookup table when loading from external link.
This commit is contained in:
Jimmy Berry 2019-05-13 17:43:32 -05:00
parent f246043497
commit b19d7a1803

View File

@ -99,9 +99,11 @@ function table_selection_set(table, value) {
if (table.getSelectedRows()[0].getIndex() != value) {
table.getSelectedRows()[0].deselect();
table.selectRow(value);
setTimeout(function(){ table.scrollToRow(value, 'middle', false) }, 500);
}
} else {
table.selectRow(value);
setTimeout(function(){ table.scrollToRow(value, 'middle', false) }, 500);
}
}