From 476fbdc159a38543b9d4a1edad54302ada08d351 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Mon, 19 Oct 2009 19:01:24 +0000 Subject: xpidl up and running, build script updated git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@283 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/code/editRedirect.xul.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (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 100a7a0..578f498 100644 --- a/chrome/content/code/editRedirect.xul.js +++ b/chrome/content/code/editRedirect.xul.js @@ -38,6 +38,21 @@ var EditRedirect = { var args = window.arguments[0]; args.saved = true; this.saveValues(args.redirect); + + var oldDisabled = args.redirect.disabled; + args.redirect.disabled = false; + if (!/^\s*$/.test(args.redirect.exampleUrl)) { + var result = args.redirect.getMatch(args.redirect.exampleUrl); + if (!result.isMatch) { + //TODO: warn about match + } else { + var resultUrl = ''; + var secondResult = args.redirect.getMatch(resultUrl); + if (secondResult.isMatch) { + //TODO: Warn about recursive match... + } + } + } return true; }, -- cgit v1.2.3-70-g09d2