diff options
author | Einar Egilsson | 2009-10-15 09:49:49 +0000 |
---|---|---|
committer | Einar Egilsson | 2009-10-15 09:49:49 +0000 |
commit | 9266c7831e5e4d0f4e123bd62e6cc0a2d114038f (patch) | |
tree | e4f8dce7b087ba1e6f438edf22218e516469ba30 /chrome/content/code/editRedirect.xul.js | |
parent | fe10350d0c16eb700e22960c34c25c4d8b50d94f (diff) |
Del and Enter keys work in redirect list.
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@268 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content/code/editRedirect.xul.js')
-rw-r--r-- | chrome/content/code/editRedirect.xul.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/content/code/editRedirect.xul.js b/chrome/content/code/editRedirect.xul.js index e497245..100a7a0 100644 --- a/chrome/content/code/editRedirect.xul.js +++ b/chrome/content/code/editRedirect.xul.js @@ -53,7 +53,8 @@ var EditRedirect = { redirect.excludePattern = this.txtExcludePattern.value;
redirect.redirectUrl = this.txtRedirectUrl.value;
redirect.patternType = this.rdoRegex.getAttribute('selected') == 'true' ? Redirect.REGEX : Redirect.WILDCARD;
- redirect.unescapeMatches = this.chkUnescapeMatches.getAttribute('checked');
+ var val = this.chkUnescapeMatches.getAttribute('checked');
+ redirect.unescapeMatches = val === 'true' || val === true;
//Disabled cannot be set here
},
|