diff options
author | steckbrief <steckbrief@chefmail.de> | 2017-11-26 13:21:28 +0100 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2017-11-26 13:21:28 +0100 |
commit | 66fa1ca8e3ae25af82fb43fb9f79342fc3f65787 (patch) | |
tree | 2d24e12beda1a9cef4d0c66399877b3069288da7 /admin.html | |
parent | d6dfb30a86deb8278732904cee0b05a9cfa230e2 (diff) |
fixed some bugs in create story workflow, gitignore added
Diffstat (limited to 'admin.html')
-rw-r--r-- | admin.html | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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> |