Skip to content

Commit

Permalink
Hides the keyboard when the result of the trace is received.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdima committed Jun 7, 2024
1 parent edcddf3 commit ff33dbc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions TraceRoute/wwwroot/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,9 @@ function drawPath(HostList) {
}
polyline = L.polyline(latlngs, { color: 'red' }).addTo(map);
map.fitBounds(polyline.getBounds());
}

function hideKeyboard() {
document.activeElement.blur();
$("input").trigger("blur");
}
2 changes: 1 addition & 1 deletion TraceRoute/wwwroot/js/site.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions TraceRoute/wwwroot/js/traceRouteController.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
$http.get("api/trace/" + vm.Hostname)
.then(
function successFunction(response) {
hideKeyboard();
vm.isTracing = false;
theResponse = angular.fromJson(response);
if (theResponse.data.errorDescription)
Expand Down

0 comments on commit ff33dbc

Please sign in to comment.