From c6254979e6d767b209ecb6ed5618f422845f4d82 Mon Sep 17 00:00:00 2001 From: steckbrief Date: Mon, 25 Dec 2017 22:36:09 +0100 Subject: adding work around for reload page after adding a new story --- js/stories.js | 3 +++ 1 file changed, 3 insertions(+) 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 = $('
').text('Ein Charakter mit diesem Namen existiert bereits'); -- cgit v1.2.3