aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/redirectList.js
diff options
context:
space:
mode:
authorEinar Egilsson2008-01-07 22:44:06 +0000
committerEinar Egilsson2008-01-07 22:44:06 +0000
commitabc92ba06bb84d544a0d1deb065eb608cac8190e (patch)
treeba33b2f82fecca18aef7b0a9dadf2cb2af3b2d51 /chrome/content/redirectList.js
parent0ee5f981f3e708246674d26f8a26fc9b6d8f5fc9 (diff)
Redirector 1.5
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@102 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content/redirectList.js')
-rw-r--r--chrome/content/redirectList.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/content/redirectList.js b/chrome/content/redirectList.js
index 30bb64e..5da5ed8 100644
--- a/chrome/content/redirectList.js
+++ b/chrome/content/redirectList.js
@@ -19,11 +19,9 @@ var RedirectList = {
newItem.getElementsByAttribute('name', 'dscrRedirectTo')[0].setAttribute('value', item.redirectUrl);
newItem.item = item;
list.appendChild(newItem);
+ newItem.setAttribute("selected", false);
}
- if (list.children.length > 0) {
- list.selectedIndex = 0;
- }
- list.clearSelection();
+
},
onLoad : function() {
@@ -32,12 +30,12 @@ var RedirectList = {
Redirector.init();
this.lstRedirects = $('lstRedirects');
+ this.lstRedirects.selType = 'single'; //For fx3
this.template = document.getElementsByTagName('richlistitem')[0];
this.lstRedirects.removeChild(this.template);
this.btnDelete = $('btnDelete');
this.btnEdit = $('btnEdit');
this.addItemsToListBox(Redirector.list);
- this.lstRedirects.selectedIndex = -1;
} catch(e) {
alert(e);
}