From 525a20de2e853defce5b6360f56a847f7f5b164a Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 2 May 2013 11:38:29 -0400 Subject: [PATCH] parse_narrow: Handle malformed narrow URLs gracefully. Since they can't be parsed, probably the best thing to do is to send the user to the home tab; we could add in showing an error message but then we'd need a way to clear the error message -- better to just have this work. (imported from commit 67c0475ff06eb0431621eef60b9c50287a158232) --- zephyr/static/js/hashchange.js | 38 ++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/zephyr/static/js/hashchange.js b/zephyr/static/js/hashchange.js index 982e96d3d9..78e97119e5 100644 --- a/zephyr/static/js/hashchange.js +++ b/zephyr/static/js/hashchange.js @@ -57,14 +57,21 @@ function parse_narrow(hash) { for (i=1; i