diff scripts/schema_diagram.py @ 8458:15a92b0a9b79

fix: make user_src_input generate valid javascript user_src_input used to generate False if edit_ok == False in this statement: tal:attributes="onblur python:edit_ok and 'split_name(this)'; but False isn't a boolean in javascript, so it throws an error in the console. Changed to use: tal:attributes="onblur python:'split_name(this)' if edit_ok else ''; which generates an empty onblur if the field is not editable.
author John Rouillard <rouilj@ieee.org>
date Thu, 25 Sep 2025 23:30:07 -0400
parents 23b8e6067f7c
children 9c3ec0a5c7fc
line wrap: on
line diff

Roundup Issue Tracker: http://roundup-tracker.org/