diff options
-rw-r--r-- | chrome/content/redirectList.js | 6 | ||||
-rw-r--r-- | chrome/content/redirector.js | 2 | ||||
-rw-r--r-- | install.rdf | 2 |
3 files changed, 5 insertions, 5 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; diff --git a/install.rdf b/install.rdf index 2cb631d..7a3c8ee 100644 --- a/install.rdf +++ b/install.rdf @@ -5,7 +5,7 @@ <Description about="urn:mozilla:install-manifest"> <em:id>redirector@einaregilsson.com</em:id> <em:name>Redirector</em:name> - <em:version>1.5.1</em:version> + <em:version>1.5.2</em:version> <em:creator>Einar Egilsson</em:creator> <em:description>Automatically redirects to user-defined urls on certain pages</em:description> <em:homepageURL>http://tech.einaregilsson.com/projects/redirector/</em:homepageURL> |