Compare commits

...

3 Commits

Author SHA1 Message Date
quenousimporte 0b10cefced fix html 2024-10-16 13:58:54 +02:00
quenousimporte 610725ed89 compute preview only if needed 2024-10-16 13:58:41 +02:00
quenousimporte 4a14757540 fix search display result 2024-10-16 13:58:19 +02:00
2 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@
function cleanstring($string)
{
return iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', strtolower($string));
return iconv('UTF-8', 'UTF-8//TRANSLIT//IGNORE', strtolower($string));
}
function downloadall()

View File

@ -142,7 +142,7 @@
<input type="submit" name="download" value="download" accesskey="d">
<input type="submit" name="delete" value="delete">
<input hidden name="lastchanged" value="<?php echo $lastchanged; ?>">
<div># <input autocomplete="off" class="title" name="title" value="<?php echo $title; ?>"></div>
<div><span>#&nbsp;</span><input autocomplete="off" class="title" name="title" value="<?php echo $title; ?>"></div>
</div>
<div class="editor">
<textarea rows="<?php echo $rows; ?>" autofocus name="content" spellcheck="false"><?php echo $content; ?></textarea>
@ -159,7 +159,10 @@
<div <?php if(!isset($_GET['preview'])) echo 'hidden'; ?>>
<div><a class="grey" href="note.php?title=<?php echo $title; ?>">back</a></div>
<?php
echo computepreview($title, $content);
if (isset($_GET['preview']))
{
echo computepreview($title, $content);
}
?>
</div>
</body>