From 3488baf5040ee81f610a0a4f9bccddb64841e00a Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Mon, 24 Apr 2017 19:25:20 -0400 Subject: [PATCH] Fixing tag submission --- .../challenges/standard/standard-challenge-update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-update.js b/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-update.js index 291ead17..ed634e42 100644 --- a/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-update.js +++ b/CTFd/static/admin/js/templates/challenges/standard/standard-challenge-update.js @@ -178,8 +178,8 @@ function updatetags(){ $('#chal-tags > span > span').each(function(i, e){ tags.push($(e).text()) }); - $.post(script_root + '/admin/tags/'+chal, {'tags':tags, 'nonce': $('#nonce').val()}) - loadchal(chal) + $.post(script_root + '/admin/tags/'+chal, {'tags':tags, 'nonce': $('#nonce').val()}); + $('#update-tags').modal('toggle'); } function updatefiles(){