You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments