From 52e2bf2d241ec5f70a40a21854281c25a4d5e8bb Mon Sep 17 00:00:00 2001 From: Taka Date: Fri, 29 Jan 2021 13:24:40 +1100 Subject: [PATCH] Worked around a timing problem when showing the Program Info dialog. --- vasl_templates/webapp/static/main.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vasl_templates/webapp/static/main.js b/vasl_templates/webapp/static/main.js index 0c7140a..fbfc693 100644 --- a/vasl_templates/webapp/static/main.js +++ b/vasl_templates/webapp/static/main.js @@ -930,8 +930,14 @@ function handle_escape( evt ) function show_program_info() { // show the PROGRAM INFO dialog + var caption = "Program info" ; + if ( gAppConfig.APP_NAME ) { + caption = gAppConfig.APP_NAME ; + if ( gAppConfig.APP_VERSION ) + caption += " (" + gAppConfig.APP_VERSION + ")" ; + } $( "#program-info" ).dialog( { - title: gAppConfig.APP_NAME + " (" + gAppConfig.APP_VERSION + ")", + title: caption, dialogClass: "program-info", modal: true, width: $(window).width() * 0.8,