diff options
author | steckbrief <steckbrief@chefmail.de> | 2017-12-25 22:36:09 +0100 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2017-12-25 22:36:09 +0100 |
commit | c6254979e6d767b209ecb6ed5618f422845f4d82 (patch) | |
tree | 857ff7396119e7acd1e9dfb59a7ec208892eb46a | |
parent | d87f45b828cf0d2eeb8a641b411bbf210aba36b1 (diff) |
adding work around for reload page after adding a new story
-rw-r--r-- | js/stories.js | 3 |
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'); |