app/assets/javascripts/your_platform/navable_title_rename.js.coffee
ready = ->
$(document).on 'keydown', '.box.first h1 input', (e)->
if (e.keyCode == 13)
setTimeout ->
# Use `setTimeout`. Otherwise, the `text()` does not contain
# the content of the input field.
text = $('.box.first h1').text()
$('.vertical_menu .active a').text(text)
$('ul.breadcrumbs > li:last a').text(text)
, 100
# $(document).on 'dblclick', '.box.first h1 input', (e)->
# e.stopPropagation() # does not work
$(document).ready(ready)