|
@@ -54,6 +54,7 @@ panel.prepareDashboard = function(){
|
|
document.getElementById('auth').style.display = 'none';
|
|
document.getElementById('auth').style.display = 'none';
|
|
document.getElementById('dashboard').style.display = 'block';
|
|
document.getElementById('dashboard').style.display = 'block';
|
|
|
|
|
|
|
|
+ /*
|
|
document.getElementById('itemUploads').addEventListener('click', function(){
|
|
document.getElementById('itemUploads').addEventListener('click', function(){
|
|
panel.getUploads();
|
|
panel.getUploads();
|
|
});
|
|
});
|
|
@@ -65,10 +66,16 @@ panel.prepareDashboard = function(){
|
|
document.getElementById('itemTokens').addEventListener('click', function(){
|
|
document.getElementById('itemTokens').addEventListener('click', function(){
|
|
panel.changeTokens();
|
|
panel.changeTokens();
|
|
});
|
|
});
|
|
|
|
+ */
|
|
|
|
|
|
panel.getAlbumsSidebar();
|
|
panel.getAlbumsSidebar();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+panel.logout = function(){
|
|
|
|
+ localStorage.removeItem("admintoken");
|
|
|
|
+ location.reload('/');
|
|
|
|
+}
|
|
|
|
+
|
|
panel.getUploads = function(album = undefined, page = undefined){
|
|
panel.getUploads = function(album = undefined, page = undefined){
|
|
|
|
|
|
if(page === undefined) page = 0;
|
|
if(page === undefined) page = 0;
|