|
@ -52,7 +52,7 @@ |
|
|
|
|
|
|
|
|
function saveAndExit() { |
|
|
function saveAndExit() { |
|
|
if (editData.task.type == "text") |
|
|
if (editData.task.type == "text") |
|
|
editData.task.htmlContent = editor.getData() |
|
|
editData.task.htmlContent = editor.getData(); |
|
|
Object.assign(task, editData.task); |
|
|
Object.assign(task, editData.task); |
|
|
|
|
|
|
|
|
// kategorie musíme první odevšad odstranit |
|
|
// kategorie musíme první odevšad odstranit |
|
@ -73,10 +73,17 @@ |
|
|
// a nakonec zavřít dialog |
|
|
// a nakonec zavřít dialog |
|
|
close(); |
|
|
close(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style> |
|
|
|
|
|
.fakeInput { |
|
|
|
|
|
border: 1px solid lightgray; |
|
|
|
|
|
padding: 0.5em; |
|
|
|
|
|
display: inline-block; |
|
|
|
|
|
margin: 0.5em; |
|
|
|
|
|
} |
|
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
<div> |
|
|
<div> |
|
|
<div> |
|
|
<div> |
|
|
<span><i>ID:</i> {editData.task.id},</span> |
|
|
<span><i>ID:</i> {editData.task.id},</span> |
|
@ -97,10 +104,15 @@ |
|
|
<span contenteditable="true" bind:textContent={editData.task.title} /> |
|
|
<span contenteditable="true" bind:textContent={editData.task.title} /> |
|
|
</h1> |
|
|
</h1> |
|
|
<div> |
|
|
<div> |
|
|
<h3>Interní komentář</h3> |
|
|
<div style="display: inline-block">Interní komentář: </div> |
|
|
<div contenteditable="true" bind:textContent={editData.task.comment} /> |
|
|
<div class="fakeInput" contenteditable="true" bind:textContent={editData.task.comment} /> |
|
|
</div> |
|
|
</div> |
|
|
<div style="display: {editData.task.type == "text" ? 'block' : 'none'}"> |
|
|
{#if editData.task.type == 'open-data'} |
|
|
|
|
|
<label> |
|
|
|
|
|
Task reference: <input type="text" bind:value={editData.task.taskReference} /> |
|
|
|
|
|
</label> |
|
|
|
|
|
{/if} |
|
|
|
|
|
<div style="display: {editData.task.type == 'text' ? 'block' : 'none'}"> |
|
|
<h3>HTML obsah</h3> |
|
|
<h3>HTML obsah</h3> |
|
|
<textarea id="editor">{editData.task.htmlContent}</textarea> |
|
|
<textarea id="editor">{editData.task.htmlContent}</textarea> |
|
|
</div> |
|
|
</div> |
|
|