[Tickets #3740] NEW: javascript for 'assign' type Horde_Form elements broken

bugs@bugs.horde.org bugs at bugs.horde.org
Wed Apr 5 15:35:42 PDT 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=3740
-----------------------------------------------------------------------
 Ticket             | 3740
 Created By         | dorm at dorm.org
 Summary            | javascript for 'assign' type Horde_Form elements broken
 Queue              | Horde Framework Packages
 Version            | HEAD
 State              | Unconfirmed
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
+New Attachment     | form_assign.js.1.2.10.4.patch
-----------------------------------------------------------------------


dorm at dorm.org (2006-04-05 15:35) wrote:

The javascript code in js/form_assign.js is broken for moving select options
back and forth between the two select lists for Horde_Form 'assign'
elements.

I've verified this behavior in Windows Firefox and IE.  I will check on
MacOS Firefox and Safari when I get home and will update.

The current code obtains the form element objects through the document[]
array, which doesn't work.

I've attached a patch which obtains the objects through the
document.forms[...].elements[...] array(s).  It first splits the 'name'
parater to separate the form and select element names.

This patched code works on Windows Firefox and IE, and I will verify on
MacOS Firefox and Safari.





More information about the bugs mailing list