Update of /cvsroot/thyapi/thyapi/thywidgets
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17944/thywidgets
Modified Files:
thydropdownbox.js
Log Message:
Commiting file additions and modification from SVN revision 2652 to 2653...
Changes made by vinicius on 2006-01-19 14:04:44 +0100 (Thu, 19 Jan 2006) corresponding to SVN revision 2653 with message:
Index: thydropdownbox.js
===================================================================
RCS file: /cvsroot/thyapi/thyapi/thywidgets/thydropdownbox.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** thydropdownbox.js 11 Sep 2005 02:20:27 -0000 1.3
--- thydropdownbox.js 19 Jan 2006 12:01:14 -0000 1.4
***************
*** 83,88 ****
});
! //FIXME: This is not implemented yet.
! //this.dropEdit.setReadOnly(true);
/*this.dropEdit.addEventListener({
onkeypress: this._eventSearchRow(),
--- 83,91 ----
});
! this.dropEdit.setReadOnly(true);
! this.dropEdit.addEventListener({
! onclick: this._eventShowHideListBox()
! });
!
/*this.dropEdit.addEventListener({
onkeypress: this._eventSearchRow(),
***************
*** 590,593 ****
--- 593,597 ----
}
+
/**
* Method: _hideListBox
***************
*** 690,693 ****
--- 694,718 ----
\*************************************************************************/
+ /**
+ * Method: _eventShowHideListBox
+ *
+ * Hides the <thyListBox> element
+ *
+ */
+ p._eventShowHideListBox = function ()
+ {
+ var self = this;
+ return function(e)
+ {
+ if (dynapi.document._opennedDropDownBoxes[self.name])
+ {
+ self._hideListBox();
+ }
+ else
+ {
+ self._showListBox();
+ }
+ }
+ }
/**
|