From ee4d8fbe02409831e7fbf2578f778cc81a02836a Mon Sep 17 00:00:00 2001 From: Taka Date: Fri, 29 Jul 2022 09:23:18 +1000 Subject: [PATCH] Fixed a problem when auto-generating a simple note snippet with no content. --- vasl_templates/webapp/static/simple_notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vasl_templates/webapp/static/simple_notes.js b/vasl_templates/webapp/static/simple_notes.js index cc330d8..1744ed4 100644 --- a/vasl_templates/webapp/static/simple_notes.js +++ b/vasl_templates/webapp/static/simple_notes.js @@ -184,7 +184,7 @@ function _do_edit_simple_note( template_id, player_no, $sortable2, $entry, defau } } // check if we should automatically generate a snippet - if ( isKeyDown( "Shift" ) ) { + if ( isKeyDown( "Shift" ) && data.caption !== "" ) { var $elem = $entry.find( "img.snippet" ) ; if ( $elem.length !== 0 ) $elem.click() ;