From 391875ea8389d043360961cf2c5a69f2b6d7a91a Mon Sep 17 00:00:00 2001 From: steckbrief Date: Thu, 28 Dec 2017 13:46:55 +0100 Subject: update and delete added --- lib/new-character-dialog.inc.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'lib/new-character-dialog.inc.php') diff --git a/lib/new-character-dialog.inc.php b/lib/new-character-dialog.inc.php index 5cf25c0..0e77ad1 100644 --- a/lib/new-character-dialog.inc.php +++ b/lib/new-character-dialog.inc.php @@ -10,7 +10,7 @@ @@ -38,4 +39,13 @@ createNewCharacter(); event.preventDefault(); }); + $('#newCharacterModal').on('hide.bs.modal', function(evt) { + formReset(); + }); + function formReset() { + $('#create-char-form')[0].reset(); + $('#char-action').val('create'); + $('#modal-title').text('Neuen Charakter anlegen'); + $('#create-char-btn').text('Anlegen'); + } -- cgit v1.2.3