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.

drh 2018-09-20 10:27 trunk
Commit ee0f77dffac49cbcddafc1c14c973e4f6917859e31312ba9eb21c8d434edc2ed
1 file changed +1
--- skins/default/js.txt
+++ skins/default/js.txt
@@ -124,10 +124,11 @@
124124
}
125125
}
126126
// else, can't parse response as HTML or XML
127127
}
128128
xhr.open("POST", "$home/sitemap"); // note the TH1 substitution!
129
+ xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
129130
xhr.responseType = "document";
130131
xhr.send("popup=1");
131132
}
132133
else {
133134
showPanel(); // just show what we built above
134135
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button