-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprofileList.js
30 lines (26 loc) · 1.01 KB
/
profileList.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
profileLB = new Bs_Dropdown();
profileLB.imgDir = 'scripts/blueShoes/components/dropdown/img/win2k/';
profileLB.setValue('Default');
profileLB.drawInto('profileLB');
profileLB.attachEvent('onChange', loadProfile);
*/
if(getCookie("profileList")!=null) {
// load the various profiles
var a = unescape(getCookie("profileList"));
var profileListArray = a.split("|");
for (var i=0; i<profileListArray.length; i++) {
var option = document.createElement("option");
option.text = unescape(profileListArray[i]);
EditableSelect.selectAddOption(document.getElementById("profileLB"), option);
if(i==0)
option.selected="selected";
}
}
else {
profileListArray = new Array("Default");
var option = document.createElement("option");
option.text = "Default";
EditableSelect.selectAddOption(document.getElementById("profileLB"), option);
option.selected="selected";
}