Fix the admin app.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4439 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
8f63bcbfbf
commit
088b44cc2c
@ -29,7 +29,7 @@ window.addEventListener('load', function() {
|
|||||||
<label for=${'gs_' + key} style="font-weight: bold">${key}: </label>
|
<label for=${'gs_' + key} style="font-weight: bold">${key}: </label>
|
||||||
<div>
|
<div>
|
||||||
<input type="checkbox" ?checked=${description.value} id=${'gs_' + key}></input>
|
<input type="checkbox" ?checked=${description.value} id=${'gs_' + key}></input>
|
||||||
<button @click=${(e) => global_settings_set(key, e.srcElement.parentElement.previousElementSibling.checked)}>Set</button>
|
<button @click=${(e) => global_settings_set(key, e.srcElement.previousElementSibling.checked)}>Set</button>
|
||||||
<div>${description.description}</div>
|
<div>${description.description}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -42,7 +42,7 @@ window.addEventListener('load', function() {
|
|||||||
<div style="width: 90%; padding: 0 margin: 0">
|
<div style="width: 90%; padding: 0 margin: 0">
|
||||||
<textarea style="vertical-align: top; width: 100%" rows=20 cols=80 id=${'gs_' + key}>${description.value}</textarea>
|
<textarea style="vertical-align: top; width: 100%" rows=20 cols=80 id=${'gs_' + key}>${description.value}</textarea>
|
||||||
</div>
|
</div>
|
||||||
<button @click=${(e) => global_settings_set(key, e.srcElement.parentElement.previousElementSibling.value)}>Set</button>
|
<button @click=${(e) => global_settings_set(key, e.srcElement.previousElementSibling.firstElementChild.value)}>Set</button>
|
||||||
<div>${description.description}</div>
|
<div>${description.description}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -53,7 +53,7 @@ window.addEventListener('load', function() {
|
|||||||
<label for=${'gs_' + key} style="font-weight: bold">${key}: </label>
|
<label for=${'gs_' + key} style="font-weight: bold">${key}: </label>
|
||||||
<div>
|
<div>
|
||||||
<input type="text" value="${description.value}" id=${'gs_' + key}></input>
|
<input type="text" value="${description.value}" id=${'gs_' + key}></input>
|
||||||
<button @click=${(e) => global_settings_set(key, e.srcElement.parentElement.previousElementSibling.value)}>Set</button>
|
<button @click=${(e) => global_settings_set(key, e.srcElement.previousElementSibling.value)}>Set</button>
|
||||||
<div>${description.description}</div>
|
<div>${description.description}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user