Ticket #10693 (closed defect: fixed)

Opened 5 months ago

Last modified 3 months ago

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

Reported by: jun66j5 Assigned to: 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

fix-select-val-on-ie-r12424.diff (0.9 kB) - added by jun66j5 on 12/10/12 12:02:35.

Change History

12/10/12 12:02:35 changed by jun66j5

  • attachment fix-select-val-on-ie-r12424.diff added.

12/11/12 13:22:12 changed by rjollos

  • status changed from new to assigned.

12/21/12 14:51:31 changed by rjollos

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

12/21/12 14:55:50 changed 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).

12/27/12 15:21:20 changed 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.

02/17/13 03:58:09 changed by rjollos

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

Add/Change #10693 (`select.val()` does not work on Internet Explorer with Trac 0.11.7)




Change Properties
Action