aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js')
-rw-r--r--public/js/panel.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/js/panel.js b/public/js/panel.js
index 0f885cd..ae7529e 100644
--- a/public/js/panel.js
+++ b/public/js/panel.js
@@ -54,6 +54,7 @@ panel.prepareDashboard = function(){
document.getElementById('auth').style.display = 'none';
document.getElementById('dashboard').style.display = 'block';
+ /*
document.getElementById('itemUploads').addEventListener('click', function(){
panel.getUploads();
});
@@ -65,10 +66,16 @@ panel.prepareDashboard = function(){
document.getElementById('itemTokens').addEventListener('click', function(){
panel.changeTokens();
});
+ */
panel.getAlbumsSidebar();
}
+panel.logout = function(){
+ localStorage.removeItem("admintoken");
+ location.reload('/');
+}
+
panel.getUploads = function(album = undefined, page = undefined){
if(page === undefined) page = 0;