diff options
author | Einar Egilsson | 2009-10-19 19:01:24 +0000 |
---|---|---|
committer | Einar Egilsson | 2009-10-19 19:01:24 +0000 |
commit | 476fbdc159a38543b9d4a1edad54302ada08d351 (patch) | |
tree | ebdc7c8c122de15850929595236c34bddacb8000 /chrome/content/code | |
parent | de75a745450ee90b12bd9bec875beb7fda87d066 (diff) |
xpidl up and running, build script updated
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@283 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content/code')
-rw-r--r-- | chrome/content/code/editRedirect.xul.js | 15 |
1 files changed, 15 insertions, 0 deletions
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;
},
|