We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7c80d1 commit 07d8c86Copy full SHA for 07d8c86
src/js/modal.js
@@ -2,6 +2,8 @@ var modal = (function(){
2
3
var_previousModal=null;
4
5
+var_maxHeadingLength=50;
6
+
7
varmod={};
8
9
mod.open=function(){
@@ -108,6 +110,9 @@ var modal = (function(){
108
110
modalControls.appendChild(cancelButton);
109
111
modalControls.appendChild(actionButton);
112
if(options.heading!=null){
113
+if(options.heading.length>_maxHeadingLength){
114
+options.heading=options.heading.substring(0,_maxHeadingLength)+"...";
115
+};
116
varmodalHeading=helper.makeNode({
117
tag: "h1",
118
text: options.heading,
0 commit comments