aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/redirectList.js
diff options
context:
space:
mode:
authorEinar Egilsson2007-10-02 10:49:10 +0000
committerEinar Egilsson2007-10-02 10:49:10 +0000
commit44344acd49dbd1781825644deee839d7de132e00 (patch)
treed21acd917adc8fbbb64d0c7295a7a56345a5053d /chrome/content/redirectList.js
parentec5b381d57a1a873d423c9e6f2d6ca78c1aa1963 (diff)
Redirector 1.0.1
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@92 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content/redirectList.js')
-rw-r--r--chrome/content/redirectList.js30
1 files changed, 17 insertions, 13 deletions
diff --git a/chrome/content/redirectList.js b/chrome/content/redirectList.js
index 159bc8a..4680075 100644
--- a/chrome/content/redirectList.js
+++ b/chrome/content/redirectList.js
@@ -24,18 +24,18 @@ var RedirectList = {
row.appendChild(cell);
},
- createRow : function(item) {
- var row = document.createElement('listitem');
+ createRow : function(item) {
+ var row = document.createElement('listitem');
- this.createCell(row, item.pattern);
- this.createCell(row, item.exampleUrl);
- this.createCell(row, item.redirectUrl);
- this.createCell(row, item.onlyIfLinkExists);
- this.createCell(row, item.patternType);
+ this.createCell(row, item.pattern);
+ this.createCell(row, item.exampleUrl);
+ this.createCell(row, item.redirectUrl);
+ this.createCell(row, item.onlyIfLinkExists);
+ this.createCell(row, item.patternType);
- row.item = item;
- return row;
- },
+ row.item = item;
+ return row;
+ },
onLoad : function() {
try {
@@ -63,9 +63,9 @@ var RedirectList = {
"chrome,dialog,modal,centerscreen", item);
if (item.saved) {
- var row = this.createRow(item);
- $('lstRedirects').appendChild(row);
- Redirector.addRedirect(item);
+ var row = this.createRow(item);
+ $('lstRedirects').appendChild(row);
+ Redirector.addRedirect(item);
}
},
@@ -118,3 +118,7 @@ var RedirectList = {
}
};
+
+window.addEventListener('unload', function() {
+ Redirector.unload();
+}, false); \ No newline at end of file