(ems) template cleanups

This commit is contained in:
radius 2016-09-17 15:11:54 -05:00
parent ec01d2400e
commit 29e354a3c6
5 changed files with 4 additions and 10 deletions

View File

@ -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 />

View File

@ -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 />

View File

@ -45,12 +45,6 @@ var showError = function(error) {
}
};
function reload()
{
window.top.location.reload();
document.getElementById('btnClean').disabled = true;
}
function cleanupStorage()
{
localStorage.clear();

View File

@ -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 />

View File

@ -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;
}
});
});