Commit 45575fe2fb735e28ed31db33c2b6b1e69d38d0da
1 parent
c54294e5
Fixed option deselection in FF for JSON group select list
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5773 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
1 deletions
resources/js/jsonlookup.js
| ... | ... | @@ -200,7 +200,11 @@ JSONLookupWidget.prototype = { |
| 200 | 200 | var a = o.selected; |
| 201 | 201 | if(a == 'selected' || a === true) { |
| 202 | 202 | this.modItems('add', o.value); |
| 203 | - o.setAttribute('selected', false); | |
| 203 | + try { | |
| 204 | + o.selected = false; | |
| 205 | + } catch(e) { | |
| 206 | + o.setAttribute('selected', false); | |
| 207 | + } | |
| 204 | 208 | aCurOptions.push(o); |
| 205 | 209 | |
| 206 | 210 | if(!isUndefinedOrNull(this.triggers['add'])) { | ... | ... |