Commit 3134192f authored by Mingsong's avatar Mingsong Committed by Mingsong Hu

Issue #3159156 by Mingsong: Capability to customize dialog title

parent 2eba3edd
......@@ -133,7 +133,7 @@
let dialogOptions = JSON.parse(viewSettings.dialog_options);
dialogOptions.left += posOffset + info.jsEvent.pageX;
dialogOptions.top += posOffset + info.jsEvent.pageY;
dialogOptions.title = thisEvent.title.replace(/(<([^>]+)>)/ig,"");
dialogOptions.title = dialogOptions.title ? dialogOptions.title : thisEvent.title.replace(/(<([^>]+)>)/ig,"");
dialogOptions.html = des;
//Create window
dialogs[dialogIndex] = jsFrame.create(dialogOptions);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment