diff --git a/pkg/emscripten/embed/index.html b/pkg/emscripten/embed/index.html index e061a243e8..7e9e9b5647 100644 --- a/pkg/emscripten/embed/index.html +++ b/pkg/emscripten/embed/index.html @@ -89,7 +89,7 @@ <button class="btn btn-warning disabled" id="btnAdd" onclick="document.getElementById('btnRom').click()" disabled> <span class="fa fa-plus" id="icnAdd"></span> Add Content </button> - <button class="btn btn-warning enabled" id="btnClean" onclick="cleanupStorage();" title="Cleanup" disabled> + <button class="btn btn-warning" id="btnClean" onclick="cleanupStorage();" title="Cleanup"> <span class="fa fa-trash-o" id="icnClean"></span> <span class="sr-only">Cleanup</span> </button> <input class="btn btn-warning disabled" style="display: none" type="file" id="btnRom" name="upload" onclick="document.getElementById('btnAdd').click();" onchange="selectFiles(event.target.files)" multiple /> diff --git a/pkg/emscripten/itch/index.html b/pkg/emscripten/itch/index.html index db25960ae8..96c6059319 100644 --- a/pkg/emscripten/itch/index.html +++ b/pkg/emscripten/itch/index.html @@ -88,7 +88,7 @@ <button class="btn btn-danger disabled" id="btnAdd" onclick="document.getElementById('btnRom').click()" title="Add Games" disabled> <span class="fa fa-plus" id="icnAdd"></span> </span> <span class="sr-only"></span> </button> - <button class="btn btn-danger enabled" id="btnClean" onclick="cleanupStorage();" title="Cleanup" disabled> + <button class="btn btn-danger" id="btnClean" onclick="cleanupStorage();" title="Cleanup"> <span class="fa fa-trash-o" id="icnClean"></span> <span class="sr-only">Cleanup</span> </button> <input class="btn btn-danger disabled" style="display: none" type="file" id="btnRom" name="upload" onclick="document.getElementById('btnAdd').click();" onchange="selectFiles(event.target.files)" multiple /> diff --git a/pkg/emscripten/itch/itch.js b/pkg/emscripten/itch/itch.js index 240980b641..fa7a0d1136 100644 --- a/pkg/emscripten/itch/itch.js +++ b/pkg/emscripten/itch/itch.js @@ -45,12 +45,6 @@ var showError = function(error) { } }; -function reload() -{ - window.top.location.reload(); - document.getElementById('btnClean').disabled = true; -} - function cleanupStorage() { localStorage.clear(); diff --git a/pkg/emscripten/libretro/index.html b/pkg/emscripten/libretro/index.html index e196fbc911..872002c4f8 100644 --- a/pkg/emscripten/libretro/index.html +++ b/pkg/emscripten/libretro/index.html @@ -87,7 +87,7 @@ <button class="btn btn-primary disabled" id="btnAdd" onclick="document.getElementById('btnRom').click()" disabled> <span class="fa fa-plus" id="icnAdd"></span> Add Content </button> - <button class="btn btn-primary enabled" id="btnClean" onclick="cleanupStorage();" title="Cleanup" disabled> + <button class="btn btn-primary" id="btnClean" onclick="cleanupStorage();" title="Cleanup"> <span class="fa fa-trash-o" id="icnClean"></span> <span class="sr-only">Cleanup</span> </button> <input class="btn btn-primary disabled" style="display: none" type="file" id="btnRom" name="upload" onclick="document.getElementById('btnAdd').click();" onchange="selectFiles(event.target.files)" multiple /> diff --git a/pkg/emscripten/libretro/libretro.js b/pkg/emscripten/libretro/libretro.js index e34de6d80a..868b96fc3a 100644 --- a/pkg/emscripten/libretro/libretro.js +++ b/pkg/emscripten/libretro/libretro.js @@ -48,6 +48,7 @@ var showError = function(error) { function cleanupStorage() { localStorage.clear(); + document.getElementById("btnClean").disabled = true; } function dropboxInit() @@ -334,7 +335,6 @@ $(function() { $('#lblLocal').addClass('active'); preLoadingComplete(); setupFileSystem("browser"); - document.getElementById("btnClean").disabled = false; } }); });