From 9266c7831e5e4d0f4e123bd62e6cc0a2d114038f Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Thu, 15 Oct 2009 09:49:49 +0000 Subject: 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 --- chrome/content/code/editRedirect.xul.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/content/code/editRedirect.xul.js') 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 }, -- cgit v1.2.3-70-g09d2