From 700cd7ce1f0e06ab23f266f5ab973a17e71de8ee Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 5 Jun 2018 19:51:01 +0100 Subject: [PATCH] Add game detection --- app/public/static/package_create.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/public/static/package_create.js b/app/public/static/package_create.js index 8d81206..36d1853 100644 --- a/app/public/static/package_create.js +++ b/app/public/static/package_create.js @@ -49,6 +49,11 @@ $(function() { if (result.forumId) { $("#forums").val(result.forumId) } + + if (result.type && result.type.length > 2) { + $("#type").val(result.type); + } + finish() }).catch(function(e) { alert(e)