fix lineNumberClicked

This commit is contained in:
Sven Fuchs 2013-03-14 17:35:39 +01:00
parent 83943232db
commit ff6e126e45

View File

@ -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: () ->