Skip to content

Commit

Permalink
Correct commented b64encode code in multiselect
Browse files Browse the repository at this point in the history
The arguments to b64encode need to be bytes, not a direct string. As @plocket noticed, this is corrected in the multiselect_demo.yml, but not in multiselect.yml.
  • Loading branch information
BryceStevenWilley authored Jul 5, 2023
1 parent b077b30 commit 66c482d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docassemble/ALToolbox/data/questions/multiselect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ comment: |
script: |
<script type="text/javascript">
$(document).ready(function() {
$("#${ base64.b64encode("input_name") }").multiselect({enableCaseInsensitiveFiltering: true, inheritClass: true});
$("#${ base64.b64encode("input_name".encode()) }").multiselect({enableCaseInsensitiveFiltering: true, inheritClass: true});
});
</script>
Expand All @@ -28,4 +28,4 @@ comment: |
https://davidstutz.github.io/bootstrap-multiselect/
Forked as of 11/18/2021, with changes to make compatible with Bootstrap 5
Forked as of 11/18/2021, with changes to make compatible with Bootstrap 5

0 comments on commit 66c482d

Please sign in to comment.