Ticket #104 (closed task: fixed)

Opened 2 years ago

Last modified 1 year ago

painting

Reported by: sky@columbia.edu Assigned to: therve@gmail.com
Priority: lowest Milestone: MochiKit 1.5
Component: component1 Version: 1.0
Severity: normal Keywords: painting
Cc: painting

Description

Below is a diff to DOM that works correctly with queryString so it sends the right data. This is tested on firefox. If you want to be safer replace('i=elem.selectedIndex','i=0')

if (tagName == "SELECT") {

+ if (elem.multiple) { + for (var i=elem.selectedIndex;i<elem.options.length;i++) { + var opt = elem.options[i]; + if (opt.selected) { + names.push(name); + values.push((opt.value) ? opt.value : opt.text); + } + } + return null;

} if (elem.selectedIndex >= 0) {

Attachments

diff.DOM (485 bytes) - added by anonymous on 05/09/06 11:34:23.

Change History

05/09/06 11:33:06 changed by sky at columbia

trying diff again <nowiki> 388a389,398

if (elem.multiple) { for (var i=elem.selectedIndex;i<elem.options.length;i++) { var opt = elem.options[i]; if (opt.selected) { names.push(name); values.push((opt.value) ? opt.value : opt.text); } } return null; }

</nowiki>

05/09/06 11:34:23 changed by anonymous

  • attachment diff.DOM added.

05/09/06 12:18:40 changed by therve@gmail.com

  • owner changed from somebody to therve@gmail.com.
  • status changed from new to assigned.

05/09/06 12:55:17 changed by therve@gmail.com

  • status changed from assigned to closed.
  • resolution set to fixed.

Thanks, fixed in [853].

11/18/06 15:51:23 changed by

  • milestone deleted.

Milestone milestone1 deleted

07/06/07 12:07:37 changed by anonymous

  • cc set to painting.
  • summary changed from formContents needs support for select tags in multiple mode to painting.
  • priority changed from normal to lowest.
  • version set to 1.0.
  • milestone set to MochiKit 1.5.
  • keywords set to painting.
  • type changed from defect to task.