Mercurial > p > roundup > code
comparison test/test_multipart.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 | f8893e1cde0d |
| children |
comparison
equal
deleted
inserted
replaced
| 8457:f7fadbac5856 | 8458:15a92b0a9b79 |
|---|
