From ae436464d221d3ba4535455f616ceb473e07e0cc Mon Sep 17 00:00:00 2001 From: Noah Luck Easterly Date: Sat, 10 Mar 2012 08:02:04 -0500 Subject: adding escape option so you can transform a url into a parameter (if you wanted to automatically check the google cache or somesuch) --- chrome/js/redirector-ui.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/js/redirector-ui.js') 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; } -- cgit v1.2.3-70-g09d2