i cant uncache chrome fuckit
This commit is contained in:
@@ -36,13 +36,13 @@ func main() {
|
||||
return oneT
|
||||
}
|
||||
data := map[string]interface{}{
|
||||
"Namespaces": []string{"datastore", "dp-orchestration"},
|
||||
"This": map[string]interface{}{
|
||||
"Namespaces": []string{"datastore", "dp-orchestration"},
|
||||
"ID": "id00/id11",
|
||||
"Title": "title id11",
|
||||
"ReadOnly": false,
|
||||
"PID": "id00",
|
||||
"PTitle": "title id00",
|
||||
"ID": "id00/id11",
|
||||
"Title": "title id11",
|
||||
"ReadOnly": false,
|
||||
"PID": "id00",
|
||||
"PTitle": "title id00",
|
||||
"Content": `# hello
|
||||
|
||||
## world
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
{{ define "_namespace" }}
|
||||
<script>
|
||||
function setNamespace() {
|
||||
document.getElementById("namespace").disabled = true
|
||||
document.cookie = "namespace=" + document.getElementById("namespace").value
|
||||
window.location.href = `${window.location.protocol}`+"//"+`${window.location.host}/ui/files`
|
||||
}
|
||||
</script>
|
||||
{{ if .This.Namespaces }}
|
||||
<select id="namespace" onchange="setNamespace()" style="max-width: 7rem;">
|
||||
{{ range .This.Namespaces }}
|
||||
<option>{{ . }}</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
{{ end }}
|
||||
<script>
|
||||
function setNamespace() {
|
||||
document.getElementById("namespace").disabled = true
|
||||
window.location.href = `${window.location.protocol}`+"//"+`${window.location.host}/ui/files?namespace=${document.getElementById("namespace").value}`
|
||||
}
|
||||
</script>
|
||||
{{ $cur := .Namespace }}
|
||||
{{ if .Namespaces }}
|
||||
<select id="namespace" onload="markNamespace()" onchange="setNamespace()" style="max-width: 7rem;">
|
||||
{{ range .Namespaces }}
|
||||
<option {{ if eq $cur . }}selected{{ end }}>{{ . }}</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user