From c00b3072e5e6e2014e690c0627586d66097b5a07 Mon Sep 17 00:00:00 2001 From: Taka Date: Mon, 8 Jun 2020 00:19:38 +0000 Subject: [PATCH] Don't show the "scenario modified" indicator if the "dirty scenario" check has been disabled. --- vasl_templates/webapp/static/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vasl_templates/webapp/static/main.js b/vasl_templates/webapp/static/main.js index 476d92a..a48a7b7 100644 --- a/vasl_templates/webapp/static/main.js +++ b/vasl_templates/webapp/static/main.js @@ -347,7 +347,8 @@ $(document).ready( function () { // NOTE: The following is to add/remove the "scenario modified" indicator. It's pretty inefficent // to do this using a timer, but we would otherwise have to attach a "on change" event handler // to every single input field, simple note, etc., which would be far more complicated and error-prone. - setInterval( update_scenario_status, 1*1000 ) ; + if ( ! getUrlParam( "disable-dirty-scenario-check" ) ) + setInterval( update_scenario_status, 1*1000 ) ; // adjust the layout on resize $(window).resize( function() {