aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/templates')
-rw-r--r--app/view/templates/edit.php2
-rw-r--r--app/view/templates/edittabs.php4
-rw-r--r--app/view/templates/edittopbar.php2
-rw-r--r--app/view/templates/layout.php5
4 files changed, 4 insertions, 9 deletions
diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php
index 4c7fc61..28e245f 100644
--- a/app/view/templates/edit.php
+++ b/app/view/templates/edit.php
@@ -30,7 +30,7 @@
<script>
const pageid = '<?= $page->id() ?>';
</script>
-<script src="<?= Model::jspath() ?>edit.js"></script>
+<script src="<?= Model::jspath() ?>edit.bundle.js"></script>
</body>
<?php $this->stop('page') ?> \ No newline at end of file
diff --git a/app/view/templates/edittabs.php b/app/view/templates/edittabs.php
index 0829c48..c890677 100644
--- a/app/view/templates/edittabs.php
+++ b/app/view/templates/edittabs.php
@@ -13,9 +13,9 @@ foreach ($tablist as $key => $value) {
echo '<div class="content">';
if ($key == $opentab) {
- echo '<textarea name="' . $key . '" id="' . $key . '" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus >' . $value . '</textarea>';
+ echo '<textarea name="' . $key . '" id="edit' . $key . '" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus >' . $value . '</textarea>';
} else {
- echo '<textarea name="' . $key . '" id="' . $key . '" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">' . $value . '</textarea>';
+ echo '<textarea name="' . $key . '" id="edit' . $key . '" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">' . $value . '</textarea>';
}
echo '</div>';
echo '</div>';
diff --git a/app/view/templates/edittopbar.php b/app/view/templates/edittopbar.php
index ec1a875..13cef96 100644
--- a/app/view/templates/edittopbar.php
+++ b/app/view/templates/edittopbar.php
@@ -27,7 +27,7 @@
<span id="fontsize" class="hidephone">
<label for="fontsize">Font-size</label>
- <input type="number" name="fontsize" value="<?= Config::fontsize() ?>" id="fontsize" min="5" max="99">
+ <input type="number" name="fontsize" value="<?= Config::fontsize() ?>" id="editfontsize" min="5" max="99">
</span>
<span id="download" class="hidephone">
diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php
index 3c38be4..91ae378 100644
--- a/app/view/templates/layout.php
+++ b/app/view/templates/layout.php
@@ -18,11 +18,6 @@
echo '<link rel="stylesheet" href="' . Model::csspath() . Config::interfacecss() . '">';
}
?>
- <script>
- // global js vars
- const basepath = '/<?= Config::basepath() ?>/';
- const jspath = '<?= Model::jspath() ?>';
- </script>
</head>