Fossil SCM
The POST request by the hamburger menu must set the right content type of application/x-www-form-urlencoded in order to pass the popup=1 query parameter.
Commit
ee0f77dffac49cbcddafc1c14c973e4f6917859e31312ba9eb21c8d434edc2ed
Parent
27c7a49191e3ee9…
1 file changed
+1
+1
| --- skins/default/js.txt | ||
| +++ skins/default/js.txt | ||
| @@ -124,10 +124,11 @@ | ||
| 124 | 124 | } |
| 125 | 125 | } |
| 126 | 126 | // else, can't parse response as HTML or XML |
| 127 | 127 | } |
| 128 | 128 | xhr.open("POST", "$home/sitemap"); // note the TH1 substitution! |
| 129 | + xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | |
| 129 | 130 | xhr.responseType = "document"; |
| 130 | 131 | xhr.send("popup=1"); |
| 131 | 132 | } |
| 132 | 133 | else { |
| 133 | 134 | showPanel(); // just show what we built above |
| 134 | 135 |
| --- skins/default/js.txt | |
| +++ skins/default/js.txt | |
| @@ -124,10 +124,11 @@ | |
| 124 | } |
| 125 | } |
| 126 | // else, can't parse response as HTML or XML |
| 127 | } |
| 128 | xhr.open("POST", "$home/sitemap"); // note the TH1 substitution! |
| 129 | xhr.responseType = "document"; |
| 130 | xhr.send("popup=1"); |
| 131 | } |
| 132 | else { |
| 133 | showPanel(); // just show what we built above |
| 134 |
| --- skins/default/js.txt | |
| +++ skins/default/js.txt | |
| @@ -124,10 +124,11 @@ | |
| 124 | } |
| 125 | } |
| 126 | // else, can't parse response as HTML or XML |
| 127 | } |
| 128 | xhr.open("POST", "$home/sitemap"); // note the TH1 substitution! |
| 129 | xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); |
| 130 | xhr.responseType = "document"; |
| 131 | xhr.send("popup=1"); |
| 132 | } |
| 133 | else { |
| 134 | showPanel(); // just show what we built above |
| 135 |