Changeset 228 for trunk/style
- Timestamp:
- Jul 2, 2009, 3:00:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/style/global.js
r103 r228 74 74 } 75 75 } 76 77 function UpdateVersion(versions,versionselected) 78 { 79 //elSel.clear; 80 var elSel = document.getElementById('Version'); 81 for (i = elSel.length - 1; i>=0; i--) { 82 elSel.remove(i); 83 } 84 85 var elSel = document.getElementById('Version'); 86 for(i = 0; i < versions.length; i++) 87 { 88 var elOptNew = document.createElement('option'); 89 elOptNew.text = versions[i]; 90 elOptNew.value = versions[i]; 91 if (versions[i] == versionselected) 92 elOptNew.selected = true; 93 try { 94 elSel.add(elOptNew, null); // standards compliant; doesn't work in IE 95 } 96 catch(ex) { 97 elSel.add(elOptNew); // IE only 98 } 99 } 100 }
Note:
See TracChangeset
for help on using the changeset viewer.