summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2017-12-25 22:36:09 +0100
committersteckbrief <steckbrief@chefmail.de>2017-12-25 22:36:09 +0100
commitc6254979e6d767b209ecb6ed5618f422845f4d82 (patch)
tree857ff7396119e7acd1e9dfb59a7ec208892eb46a /js
parentd87f45b828cf0d2eeb8a641b411bbf210aba36b1 (diff)
adding work around for reload page after adding a new story
Diffstat (limited to 'js')
-rw-r--r--js/stories.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/stories.js b/js/stories.js
index 535bb85..dcab144 100644
--- a/js/stories.js
+++ b/js/stories.js
@@ -29,6 +29,9 @@ function create(formName, url, modalName) {
console.log(data);
console.log(textStatus);
$('#' + modalName).modal('hide');
+ form.reset();
+ // Just a work around
+ location.reload();
}).fail(function(jqXHR, textStatus) {
if (409 == jqXHR.status) {
var errorElement = $('<div id="error">').text('Ein Charakter mit diesem Namen existiert bereits');