From ebe6f8270e3eb59539619c22a62cc440e3c7889a Mon Sep 17 00:00:00 2001 From: vvo <> Date: Sun, 23 Oct 2022 19:58:25 +0800 Subject: [PATCH] minor update --- sdvx@asphyxia/webui/asset/js/generator.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sdvx@asphyxia/webui/asset/js/generator.js b/sdvx@asphyxia/webui/asset/js/generator.js index 2efbaa3..9936c63 100644 --- a/sdvx@asphyxia/webui/asset/js/generator.js +++ b/sdvx@asphyxia/webui/asset/js/generator.js @@ -108,7 +108,14 @@ $(document).ready(function() { return 0; } - + $('#roll-result').on('click', function(){location.reload()}) + + $('html').keypress(function(e){ + if([13, 27, 32].includes(e.keyCode) && $('.modal.is-active').length > 0) { + location.reload() + } + }) + $('.input').hide() $('.button').addClass('is-link') let refid = document.getElementsByName("refid")[0].value @@ -127,8 +134,6 @@ $(document).ready(function() { loadItems(parseInt($('#set_select').val()), gene_edition, items_crew, items_stamp, items_subbg, items_bgm, items_nemsys) }) - $('#roll-result').on('click', function(){location.reload()}) - $('#pregene-roll').on('click', async function() { $('#pregene-roll').attr('disabled', 'disabled') if(gene_edition === 'premium' && window.location.search.match(/(premium)/g) != undefined) {