Improved title update.

This commit is contained in:
Martin Edenhofer 2012-11-12 10:49:21 +01:00
parent 01dcf0a971
commit 9eec33ccb8

View file

@ -337,6 +337,8 @@ class Index extends App.Controller
title = $this.html()
title = ('' + title)
.replace(/<.+?>/g, '')
title = ('' + title)
.replace(/&nbsp;/g, ' ')
if title is '-'
title = ''
@ticket.title = title