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 = $this.html()
title = ('' + title) title = ('' + title)
.replace(/<.+?>/g, '') .replace(/<.+?>/g, '')
title = ('' + title)
.replace(/&nbsp;/g, ' ')
if title is '-' if title is '-'
title = '' title = ''
@ticket.title = title @ticket.title = title