Commit a69514cc authored by marc's avatar marc
Browse files

com.js: popup can use a domElement as input

parent 6c9801f9
......@@ -291,6 +291,19 @@ Com.prototype = {
.innerHTML = msg;
$(this.popup_container).find('button').focus();
},
/**
* display a popup message in a small window
* @param {domElement} msg
* */
popupHTML: function (domElement) {
this.popup_container.style.display = "block";
this.popup_container.lastElementChild
.innerHTML = "";
this.popup_container.lastElementChild
.appendChild(domElement);
$(this.popup_container).find('button').focus();
},
/**
* close popup window
......
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