summaryrefslogtreecommitdiffstats
path: root/admin.html
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2017-11-26 13:21:28 +0100
committersteckbrief <steckbrief@chefmail.de>2017-11-26 13:21:28 +0100
commit66fa1ca8e3ae25af82fb43fb9f79342fc3f65787 (patch)
tree2d24e12beda1a9cef4d0c66399877b3069288da7 /admin.html
parentd6dfb30a86deb8278732904cee0b05a9cfa230e2 (diff)
fixed some bugs in create story workflow, gitignore added
Diffstat (limited to 'admin.html')
-rw-r--r--admin.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/admin.html b/admin.html
index ba5d37f..a17ff0f 100644
--- a/admin.html
+++ b/admin.html
@@ -6,7 +6,7 @@
<script src="https://www.sl-its.de/js/jquery-1.11.2.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
- function uploadSeriesLogo() {
+ function createNewStory() {
var data = new FormData($('#create-story-form')[0]);
//var file = $('#story-logo').prop('files')[0];
//data.append('file', file);
@@ -80,7 +80,7 @@
<form action="" method="post" enctype="multipart/form-data" id="create-story-form">
<div class="form-group">
<label for="name">Name der Kindergeschichte:</label>
- <input type="text" class="form-control" id="story-name">
+ <input type="text" class="form-control" id="story-name" name="story-name">
</div>
<div class="form-group">
<input type="file" name="story-logo" id="story-logo">
@@ -94,5 +94,11 @@
</div>
</div>
+ <script>
+ $('#create-story-form').submit(function(event) {
+ createNewStory();
+ event.preventDefault();
+ });
+ </script>
</body>
-</html> \ No newline at end of file
+</html>