Skip to content

Commit

Permalink
shell: Cleanup link handling for shell links
Browse files Browse the repository at this point in the history
These are other places we should be consistent and stop all
navigation if we've handled the link.

Closes #3285
  • Loading branch information
stefwalter committed Aug 1, 2017
1 parent 633832a commit cd9bcfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/dashboard/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var _ = cockpit.gettext;
$(document).on("click", "a[data-address]", function(ev) {
cockpit.jump("/", $(this).attr("data-address"));
ev.preventDefault();
return false;
});

var common_plot_options = {
Expand Down
1 change: 1 addition & 0 deletions pkg/shell/indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ var phantom_checkpoint = phantom_checkpoint || function () { };
$("#machine-link").on("click", function(ev) {
if (machines.list.length == 1) {
index.jump({ host: machines.list[0].address, sidebar: true, component: "" });
ev.preventDefault();
return false;
}
});
Expand Down

0 comments on commit cd9bcfd

Please sign in to comment.