This commit is contained in:
2023-12-03 16:16:57 +01:00
parent 7b639d1962
commit 7afff0f376
2 changed files with 8 additions and 6 deletions

View File

@@ -94,7 +94,7 @@ session_start();
<input name="new_filename" type="text" />
</div>
<div class="field-row">
<input type="checkbox" name="public" id="public_check">
<input type="checkbox" name="public" id="public_check" checked="True">
<label for="public_check">Gjør fila søkbar</label>
<button type="submit">Last opp </button>
</div>
@@ -108,7 +108,7 @@ session_start();
<div class="title-bar">
<div class="title-bar-text">' . $title . '</div>
<div class="title-bar-controls">
<button aria-label="Close"></button>
<button aria-label="Close" onclick="document.getElementById(\'popup\').remove()"></button>
</div>
</div>
<div class="window-body">
@@ -120,11 +120,11 @@ session_start();
if(isset($_SESSION['fileupload-response'])) {
if($_SESSION['fileupload-response'] == "success") {
$successMSG = '
<div class="window center" style="width: 300px">
<div class="window center" style="width: 300px" id="popup">
<div class="title-bar">
<div class="title-bar-text">' . $_SESSION['filename'] . '</div>
<div class="title-bar-controls">
<button aria-label="Close"></button>
<button aria-label="Close" onclick="document.getElementById(\'popup\').remove()"></button>
</div>
</div>
<div class="window-body">