Improved ticket title behaviour.
This commit is contained in:
parent
da06ddaa63
commit
d6ebe079e6
2 changed files with 5 additions and 13 deletions
|
@ -88,19 +88,7 @@
|
||||||
|
|
||||||
// strip html signes if multi line exists
|
// strip html signes if multi line exists
|
||||||
if ( this.options.multiline ) {
|
if ( this.options.multiline ) {
|
||||||
var text = this.$element.html()
|
return this.$element.html()
|
||||||
//console.log('h2a 1', text)
|
|
||||||
text = text.replace(/<p><br><\/p>/g, "\n") // new line as /p
|
|
||||||
text = text.replace(/<p><br\/><\/p>/g, "\n") // new line as /p
|
|
||||||
text = text.replace(/<\/p>/g, "\n") // new line as /p
|
|
||||||
text = text.replace(/<br>/g, "\n") // new line as br
|
|
||||||
text = text.replace(/<\/div>/g, "\n") // in some caes, new line als div
|
|
||||||
text = text.replace(/<.+?>/g, "") // new line as /p
|
|
||||||
text = $("<div>" + text + "</div>").text()
|
|
||||||
text = text.replace(/ /g, " ")
|
|
||||||
text = text.replace(/\s+$/g, '');
|
|
||||||
//console.log('h2a 2', text)
|
|
||||||
return text
|
|
||||||
}
|
}
|
||||||
return this.$element.text().trim()
|
return this.$element.text().trim()
|
||||||
}
|
}
|
||||||
|
|
|
@ -2908,6 +2908,10 @@ footer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ticket-title-update {
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
|
||||||
.task-subline {
|
.task-subline {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
Loading…
Reference in a new issue