diff options
author | Einar Egilsson | 2007-05-28 22:35:59 +0000 |
---|---|---|
committer | Einar Egilsson | 2007-05-28 22:35:59 +0000 |
commit | ca4130f47bbe7f461dc1bc29d4aebb2dec305677 (patch) | |
tree | 4d5ddf0f7b26f15fc65140dfe94d389d10209618 /chrome/content/redirect.js | |
parent | a7da44a01a575246c9fb55665c15ce9a9a400814 (diff) |
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@55 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content/redirect.js')
-rw-r--r-- | chrome/content/redirect.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/content/redirect.js b/chrome/content/redirect.js index bd1a686..cfd2a2e 100644 --- a/chrome/content/redirect.js +++ b/chrome/content/redirect.js @@ -14,7 +14,8 @@ var Redirect = { var params = window.arguments[0]; params.out.pattern = $('txtPattern').value; - params.out.patternType = 'Wildcard'; + params.out.patternType = kRedirectorWildcard; + params.out.exampleUrl =$('txtExampleUrl').value; params.out.redirectUrl = $('txtRedirectUrl').value; params.out.onlyIfLinkExists = $('chkOnlyIfLinkExists').checked; @@ -23,7 +24,7 @@ var Redirect = { testPattern : function() { try { - alert(RedirectorCommon.wildcardMatch($('txtPattern').value, $('txtExampleUrl').value)); + alert(Redirector.wildcardMatch($('txtPattern').value, $('txtExampleUrl').value)); } catch(e) {alert(e);} } |