diff options
author | Noah Luck Easterly | 2012-03-10 08:02:04 -0500 |
---|---|---|
committer | Noah Luck Easterly | 2012-03-10 08:02:04 -0500 |
commit | ae436464d221d3ba4535455f616ceb473e07e0cc (patch) | |
tree | 77370c4687472c27d036d70e5aac85d63d66b721 /chrome/js/redirector-ui.js | |
parent | 96397b66079d524f223911f882e3521396c4900c (diff) |
adding escape option so you can transform a url into a parameter (if you wanted to automatically check the google cache or somesuch)
Diffstat (limited to 'chrome/js/redirector-ui.js')
-rw-r--r-- | chrome/js/redirector-ui.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/js/redirector-ui.js b/chrome/js/redirector-ui.js index 8deb20d..bd709cc 100644 --- a/chrome/js/redirector-ui.js +++ b/chrome/js/redirector-ui.js @@ -148,6 +148,7 @@ function bindRedirect(redirect) { $('#redirect-to').val(redirect.redirectUrl); $('#redirect-enabled').attr('checked', !redirect.disabled); $('#unescape-matches').attr('checked', redirect.unescapeMatches); + $('#escape-matches').attr('checked', redirect.escapeMatches); $('#regex-pattern').attr('checked', redirect.patternType == Redirect.REGEX); $('#wildcard-pattern').attr('checked', redirect.patternType == Redirect.WILDCARD); } @@ -180,6 +181,7 @@ function controlsToRedirect(redirect) { redirect.redirectUrl = $('#redirect-to').val(); redirect.disabled = !$('#redirect-enabled').attr('checked'); redirect.unescapeMatches = $('#unescape-matches').attr('checked'); + redirect.escapeMatches = $('#escape-matches').attr('checked'); return true; } |