Skip to content

Commit

Permalink
Remove the loaddb js function from the common.js file. This is only c…
Browse files Browse the repository at this point in the history
…alled from the loader page.
  • Loading branch information
dougrt committed Mar 31, 2015
1 parent ff5005e commit c2a1abe
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions acmeair-webapp/src/main/webapp/js/acmeair-common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2013 IBM Corp.
* Copyright (c) 2013-2015 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,7 +38,6 @@ function hideWaitDialog() {
}



function updateLoggedInUserWelcome() {
var loggedinuser = dojo.cookie("loggedinuser");
if (loggedinuser == null) {
Expand All @@ -48,25 +47,7 @@ function updateLoggedInUserWelcome() {
dojo.byId("loggedinwelcome").innerHTML = 'Welcome Back ' + loggedinuser;
}
}
/*
function loaddb() {
showWaitDialog();
dojo.xhrGet({
content : {
},
url: 'rest/api/loaddb',
load: function(response, ioArgs) {
hideWaitDialog();
alert('Database Loaded, response: ' + response);
},
error: function(response, ioArgs) {
hideWaitDialog();
alert('error loaddb, response: ' + response);
}
});
}
*/

function login() {
hideLoginDialog();
showLoginWaitDialog();
Expand Down

0 comments on commit c2a1abe

Please sign in to comment.