Update of /cvsroot/thyapi/thyapi/thywidgets
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3219/thywidgets
Modified Files:
thydropdownbox_ie.js
Log Message:
Commiting file additions and modification from SVN revision 2770 to 2771...
Changes made by vinicius on 2006-02-02 23:59:34 +0100 (Thu, 02 Feb 2006) corresponding to SVN revision 2771 with message:
Index: thydropdownbox_ie.js
===================================================================
RCS file: /cvsroot/thyapi/thyapi/thywidgets/thydropdownbox_ie.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** thydropdownbox_ie.js 28 Jan 2006 13:38:10 -0000 1.3
--- thydropdownbox_ie.js 2 Feb 2006 21:50:25 -0000 1.4
***************
*** 269,279 ****
p.getContentByValue = function (value)
{
! var sel_opts = this.contents.elm.childNodes[0].options;
! for (var i in options)
{
! if (options[i].value == value)
{
! return options[i].text;
}
}
--- 269,279 ----
p.getContentByValue = function (value)
{
! var sel_opts = this.contents.elm.childNodes[0].options, i;
! for (i = 0; i<sel_opts.length; i++)
{
! if (sel_opts[i].value == value)
{
! return sel_opts[i].text;
}
}
***************
*** 293,303 ****
p.setContentByValue = function(value,content)
{
! var sel_opts = this.contents.elm.childNodes[0].options;
! for (var i in options)
{
! if (options[i].value == value)
{
! options[i].text = content;
return;
}
--- 293,303 ----
p.setContentByValue = function(value,content)
{
! var sel_opts = this.contents.elm.childNodes[0].options, i;
! for (i = 0; i<sel_opts.length; i++)
{
! if (sel_opts[i].value == value)
{
! sel_opts[i].text = content;
return;
}
|