Skip to content

Commit

Permalink
Merge pull request #841 from jehiah/nsqadmin_click_841
Browse files Browse the repository at this point in the history
nsqadmin: allow ctrl/meta+click to open new tab
  • Loading branch information
mreiferson authored Jan 1, 2017
2 parents a06340f + becb682 commit d497852
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 43 deletions.
86 changes: 43 additions & 43 deletions nsqadmin/bindata.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions nsqadmin/static/js/views/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ var AppView = BaseView.extend({
},

onLinkClick: function(e) {
if (e.ctrlKey || e.metaKey) {
// allow ctrl+click to open in a new tab
return;
}
e.preventDefault();
e.stopPropagation();
Router.navigate($(e.currentTarget).attr('href'), {'trigger': true});
Expand Down

0 comments on commit d497852

Please sign in to comment.