fix lineNumberClicked
This commit is contained in:
parent
83943232db
commit
ff6e126e45
|
@ -93,7 +93,8 @@ Travis.reopen
|
|||
target.closest('.fold').toggleClass('open')
|
||||
|
||||
lineNumberClicked: (number) ->
|
||||
window.history.pushState(null, null, "#{window.location.pathname}#L#{number}");
|
||||
path = "#{window.location.pathname}#L#{number}"
|
||||
window.history.pushState({ path: path }, null, path);
|
||||
@set('controller.lineNumber', number)
|
||||
|
||||
toTop: () ->
|
||||
|
|
Loading…
Reference in New Issue
Block a user