Skip to content

Commit

Permalink
app: add handler for internal-urls
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlucas committed Apr 1, 2016
1 parent 49f1410 commit db435a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,17 @@ App.prototype._addHandlers = function _addHandlers() {
return false
})

delegate.on(this.el, 'a.internal-url', 'click', (e) => {
e.preventDefault()
const a = e.target
if (a && a.href) {
const u = a.href.replace('file://', '')
this.router.goto(u)
}

return false
})

const addConnTooltip = new Tooltip(this.el, {
selector: 'a.add-connection'
, placement: 'right'
Expand Down

0 comments on commit db435a8

Please sign in to comment.