Skip to content

Commit 34e66de

Browse files
committed
Added "desc" attribute to main element and added "el" property to the
class to make it more consistent with other controls.
1 parent 251579f commit 34e66de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/callout/Callout.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ if(!javaxt.dhtml) javaxt.dhtml={};
55
//** Callout Class
66
//******************************************************************************
77
/**
8-
* Simple div with an arrow. This class can be used as a pop-up dialog or
9-
* inside another element.
8+
* Used to create simple tooltip/popup boxes with an arrow.
109
*
1110
******************************************************************************/
1211

@@ -69,13 +68,14 @@ javaxt.dhtml.Callout = function(parent, config) {
6968

7069
//Create outer div
7170
div = document.createElement("div");
71+
div.setAttribute("desc", me.className);
7272
if (config.position==="absolute"){
7373
div.style.display = "none";
7474
div.style.position = "absolute";
7575
div.style.top = div.style.left = 0;
7676
}
7777
parent.appendChild(div);
78-
78+
me.el = div;
7979

8080

8181
//Create callout box

0 commit comments

Comments
 (0)