Modify

Opened 2 years ago

Closed 23 months ago

#10693 closed defect (fixed)

`select.val()` does not work on Internet Explorer with Trac 0.11.7

Reported by: jun66j5 Owned by: rjollos
Priority: normal Component: AdminEnumListPlugin
Severity: normal Keywords:
Cc: nonplus, jun66j5 Trac Release: 0.11

Description

When changing a select box in "Order" columns, I got the following error on IE 8 with Trac 0.11.7. No error with IE 8 and Trac 0.12.4.

Message: No object
Line: 136
Char: 3
Code: 0
URI: http://localhost:3000/chrome/adminenumlistplugin/adminenumlist.js

It looks that select.val() does not work with jquery 1.2.6 on IE.

I found the workaournd that we can use $(':selected', select).val() instead of select.val(), fix-select-val-on-ie-r12424.diff.

Attachments (1)

fix-select-val-on-ie-r12424.diff (877 bytes) - added by jun66j5 2 years ago.

Download all attachments as: .zip

Change History (6)

Changed 2 years ago by jun66j5

comment:1 Changed 2 years ago by rjollos

  • Status changed from new to assigned

comment:2 Changed 2 years ago by rjollos

It looks like the issue might be due to the option elements not having a value attribute. See here and here.

comment:3 Changed 2 years ago by rjollos

(In [12457]) Refs #10693: Workaround for select.val() not working on IE8 with Trac 0.11.7. This appears to be due to the option elements not having a value, an issue that was fixed in later versions of jQuery. Patch by Jun Omae (jun66j5).

comment:4 Changed 2 years ago by rjollos

  • Summary changed from `select.val()` does not work on Internet Exploer with Trac 0.11.7 to `select.val()` does not work on Internet Explorer with Trac 0.11.7

comment:5 Changed 23 months ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

Add Comment

Modify Ticket

Action
as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.