Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit T. committed May 17, 2024
1 parent 4211d5d commit 3addca5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/module-auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ auth_server <- function(input, output, session,
})

observe({
if(!is.null(input$language)){
if(!is.null(input$language) && input$language != ""){
lan()$set_language(input$language)
updateTextInput(session, inputId = "user_id", label = lan()$get("Username:"))
updateTextInput(session, inputId = "user_pwd", label = lan()$get("Password:"))
Expand Down
8 changes: 7 additions & 1 deletion inst/assets/bindEnter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

// #190
window.onload = function() {
val = $('#auth-language').find("option[selected]").val();
if(val === ''){
location.reload();
}
};

function bindEnter(ns) {
$('#' + ns + 'user_pwd').on('keyup',function(e) {
Expand Down

0 comments on commit 3addca5

Please sign in to comment.