diff options
Diffstat (limited to 'chrome/content')
-rw-r--r-- | chrome/content/redirectList.js | 6 | ||||
-rw-r--r-- | chrome/content/redirector.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/content/redirectList.js b/chrome/content/redirectList.js index 5da5ed8..1e61067 100644 --- a/chrome/content/redirectList.js +++ b/chrome/content/redirectList.js @@ -99,10 +99,10 @@ var RedirectList = { }, selectionChange : function() { - var index = this.lstRedirects.selectedIndex; + var index = $('lstRedirects').selectedIndex; - this.btnEdit.disabled = (index == -1); - this.btnDelete.disabled = (index == -1); + $('btnEdit').disabled = (index == -1); + $('btnDelete').disabled = (index == -1); } }; diff --git a/chrome/content/redirector.js b/chrome/content/redirector.js index 98d1c4b..fb902f6 100644 --- a/chrome/content/redirector.js +++ b/chrome/content/redirector.js @@ -214,7 +214,7 @@ var Redirector = { part = parts[i]; - pos = text.indexOf(part); + pos = text.lastIndexOf(part); if (pos == -1) { return null; |