Skip to content

Commit 2b30f68

Browse files
committed
Refs #64 Handle html entities like ''' in dialog title
1 parent 8a6edd2 commit 2b30f68

File tree

1 file changed

+2
-2
lines changed
  • creme/creme_core/static/creme_core/js/widgets/dialog

1 file changed

+2
-2
lines changed

creme/creme_core/static/creme_core/js/widgets/dialog/dialog.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ creme.dialog.Dialog = creme.component.Component.sub({
505505
return this._dialog.dialog('option', 'title');
506506
}
507507

508-
this._dialog.dialog('option', 'title', String(title).unescapeHTML());
508+
this._dialog.dialog('option', 'title', String(title).decodeHTMLEntities());
509509
return this;
510510
},
511511

@@ -572,7 +572,7 @@ creme.dialog.Dialog = creme.component.Component.sub({
572572
var draggable = is_framescroll ? options.draggable : false;
573573
var width = options.minWidth > 0 ? Math.max(options.minWidth, options.width) : options.width;
574574
var height = options.minHeight > 0 ? Math.max(options.minHeight, options.height) : options.height;
575-
var title = options.title ? String(options.title).unescapeHTML() : options.title;
575+
var title = options.title ? String(options.title).decodeHTMLEntities() : options.title;
576576

577577
this._dialog = content.dialog({buttons: Object.values(buttons),
578578
title: title,

0 commit comments

Comments
 (0)