From ca4130f47bbe7f461dc1bc29d4aebb2dec305677 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Mon, 28 May 2007 22:35:59 +0000 Subject: git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@55 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/redirect.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/content/redirect.js') 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);} } -- cgit v1.2.3-70-g09d2