diff --git a/tempjpwNow/IndivLendHome.html b/tempjpwNow/IndivLendHome.html index 1d52e796f..3879d7d33 100644 --- a/tempjpwNow/IndivLendHome.html +++ b/tempjpwNow/IndivLendHome.html @@ -1401,16 +1401,11 @@ -
@@ -1436,14 +1431,11 @@ $(document).ready(function() { jsViewsRegisterHelpers(); - - showMainContainer("container"); - //baseApiUrl = "https://localhost:8443/mifosng-provider/api/v1/"; baseApiUrl = "https://ec2-46-137-62-163.eu-west-1.compute.amazonaws.com:8443/mifosng-provider/api/v1/"; if (QueryParameters["baseApiUrl"]) baseApiUrl = QueryParameters["baseApiUrl"]; - showILLogon("logonDiv"); + showILLogon("container"); }); diff --git a/tempjpwNow/resources/jsrenderExtra.js b/tempjpwNow/resources/jsrenderExtra.js index 6965ed861..cf5da5c55 100644 --- a/tempjpwNow/resources/jsrenderExtra.js +++ b/tempjpwNow/resources/jsrenderExtra.js @@ -62,7 +62,7 @@ function doI18N(xlateStr, params) { // load html functions -function showMainContainer(containerDivName) { +function showMainContainer(containerDivName, username) { var htmlVar = '
'; htmlVar += ' '; @@ -93,12 +93,12 @@ function showMainContainer(containerDivName) { htmlVar += '
  • zh
  • '; htmlVar += ' '; htmlVar += ' '; - htmlVar += '
  • xxxxxxxxmifos'; + htmlVar += '
  • ' + username + ''; htmlVar += ' '; htmlVar += '
  • '; - htmlVar += '
  • ' + doI18N("link.signout") + '
  • '; + htmlVar += '
  • ' + doI18N("link.signout") + '
  • '; htmlVar += ''; htmlVar += '
    '; htmlVar += '
    '; @@ -134,12 +134,12 @@ function setBasicAuthKey(logonDivName, username, password) cache : false, success : function(data, textStatus, jqXHR) { base64 = data.base64EncodedAuthenticationKey; - $("#" + logonDivName).hide(); - $("#container").show(); + showMainContainer(logonDivName, username); showILClientListing(); return false; }, error : function(jqXHR, textStatus, errorThrown) { + //actually should have more checking here, its not just invalid user/pwd that may get here alert("Invalid Username/Password"); return true; } @@ -1592,3 +1592,14 @@ function selectNewThousandsSep(selectedVal) { } } } + + + + + +//sign-out +function signOut(containerDivName) { + base64 = ""; + $("#" + containerDivName).html(""); + alert("Close the Browser for a Complete Sign Out"); +} \ No newline at end of file