diff options
author | Einar Egilsson | 2012-03-11 14:01:57 -0700 |
---|---|---|
committer | Einar Egilsson | 2012-03-11 14:01:57 -0700 |
commit | 211b9c04f45b30992b9c8d976a6ff594bbd291f3 (patch) | |
tree | 77370c4687472c27d036d70e5aac85d63d66b721 /chrome/js/redirector-ui.js | |
parent | 96397b66079d524f223911f882e3521396c4900c (diff) | |
parent | ae436464d221d3ba4535455f616ceb473e07e0cc (diff) |
Merge pull request #1 from rampion/master
Adding URL escaping patch from rampion.
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; } |