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) {