Skip to content

Commit

Permalink
#3 - panel now refreshes on login, page no longer refreshes on login.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lomilar committed Jan 9, 2018
1 parent 21d231d commit 358aeff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion docs/generated-js/competencies.us.js
Original file line number Diff line number Diff line change
Expand Up @@ -5043,7 +5043,8 @@ var AppMenu = (function (AppMenu) {

}

function attemptLogin(){
function attemptLogin(event){
event.preventDefault();
var userId = $("#appMenuLoginUser").val();
var password = $("#appMenuLoginPass").val();
var server = $("#sessionLoginSelect").val();
Expand Down Expand Up @@ -5078,6 +5079,8 @@ var AppMenu = (function (AppMenu) {
$("#appMenuLoginUser").removeAttr("disabled").val("");
$("#appMenuLoginPass").removeAttr("disabled").val("");
$("#sessionLoginSelect").find("option").not("[value]").prop("selected", "true");

ScreenManager.reloadCurrentScreen();
});
}, function(err){
$("#appMenuLoginUser").addClass("error");
Expand All @@ -5086,7 +5089,10 @@ var AppMenu = (function (AppMenu) {
$("#appMenuLoginSpinner").addClass("hide");
$("#appMenuLoginUser").removeAttr("disabled");
$("#appMenuLoginPass").removeAttr("disabled");

ScreenManager.reloadCurrentScreen();
});

}

function setupMenuButtons(){
Expand Down
8 changes: 7 additions & 1 deletion src/main/js/other/AppMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ var AppMenu = (function (AppMenu) {

}

function attemptLogin(){
function attemptLogin(event){
event.preventDefault();
var userId = $("#appMenuLoginUser").val();
var password = $("#appMenuLoginPass").val();
var server = $("#sessionLoginSelect").val();
Expand Down Expand Up @@ -304,6 +305,8 @@ var AppMenu = (function (AppMenu) {
$("#appMenuLoginUser").removeAttr("disabled").val("");
$("#appMenuLoginPass").removeAttr("disabled").val("");
$("#sessionLoginSelect").find("option").not("[value]").prop("selected", "true");

ScreenManager.reloadCurrentScreen();
});
}, function(err){
$("#appMenuLoginUser").addClass("error");
Expand All @@ -312,7 +315,10 @@ var AppMenu = (function (AppMenu) {
$("#appMenuLoginSpinner").addClass("hide");
$("#appMenuLoginUser").removeAttr("disabled");
$("#appMenuLoginPass").removeAttr("disabled");

ScreenManager.reloadCurrentScreen();
});

}

function setupMenuButtons(){
Expand Down

0 comments on commit 358aeff

Please sign in to comment.