Browse files

[update] html content can have display:none, it will be removed durin…

…g attaching to modalbox
  • Loading branch information...
1 parent 5c03cc8 commit 4d434954f1b305e22535917efe71fc65cf55d3ce Stanislav-Wolski committed Apr 13, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 codebase/message.js
  2. +1 −1 samples/05_modalbox_reuse.html
View
2 codebase/message.js
@@ -108,6 +108,8 @@ if(!window.dhtmlx)
var node = config.content;
if (typeof node == "string")
node = document.getElementById(node);
+ if (node.style.display == 'none')
+ node.style.display = "";
box.childNodes[config.title?1:0].appendChild(node);
}
View
2 samples/05_modalbox_reuse.html
@@ -30,7 +30,7 @@
<input type='button' value='Show form' onclick="dhtmlx.modalbox(myform)"><br>
- <div id='form_in_box'>
+ <div id='form_in_box' style='display:none'>
<div><label> Input width <input class='inform' type='text'></label></div>
<div><label> Input height <input class='inform' type='text'></label></div>
<div><label> Input details <textarea class='inform'></textarea></label></div>

0 comments on commit 4d43495

Please sign in to comment.