Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
a69514cc
Commit
a69514cc
authored
Oct 02, 2016
by
marc
Browse files
com.js: popup can use a domElement as input
parent
6c9801f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/com.js
View file @
a69514cc
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment