Skip to content
Snippets Groups Projects
Commit 2436df0f authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Remove duplicate code

parent 508c3224
No related branches found
No related tags found
No related merge requests found
......@@ -173,11 +173,6 @@ function loginFunc() {
tools.log('Wrong Credentials', 'w');
$('.loginPanel input').removeAttr('readonly');
});
amivcore.login($('#loginUsername').val(), $('#loginPassword').val(), function(ret) {
if (ret !== true)
tools.log('Wrong Credentials', 'w');
$('.loginPanel input').removeAttr('readonly');
});
}
// When document loaded
......@@ -201,6 +196,7 @@ amivcore.on('ready', function() {
tools.getTool();
});
amivcore.on('login', function() {
console.log("Test");
tools.ui.login();
});
amivcore.on('logout', function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment