Skip to content

Commit

Permalink
Use 1.13.18 to avoid error messages in console and update defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
s-cork committed May 19, 2021
1 parent 3686a2b commit fda2b83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 3 additions & 5 deletions client_code/MultiSelectDropDown/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _add_script(s):
_add_script(
"""
<script
src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/bootstrap-select.min.js">
src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.18/dist/js/bootstrap-select.min.js">
</script>
"""
)
Expand All @@ -89,7 +89,7 @@ def _add_script(s):
"""
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css"
href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.18/dist/css/bootstrap-select.min.css"
>
"""
)
Expand All @@ -100,9 +100,7 @@ def _add_script(s):
defaults = {
"align": "left",
"placeholder": "None Selected",
"number_displayed": 3,
"filter_placeholder": "search",
"enable_filtering": True,
"enable_filtering": False,
"multiple": True,
"enabled": True,
"spacing_below": "small",
Expand Down
9 changes: 4 additions & 5 deletions client_code/MultiSelectDropDown/form_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ container:
type: HtmlTemplate
properties: {tooltip: '', background: '', foreground: '', border: '', visible: true,
role: null, html: "<!-- Latest compiled and minified CSS -->\n<link rel=\"stylesheet\"\
\ href=\"https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css\"\
>\n\n<!-- Latest compiled and minified JavaScript -->\n<script src=\"https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/bootstrap-select.min.js\"\
\ href=\"https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.18/dist/css/bootstrap-select.min.css\"\
>\n\n<!-- Latest compiled and minified JavaScript -->\n<script src=\"https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.18/dist/js/bootstrap-select.min.js\"\
></script>\n\n<select class=\"select-picker\" \n multiple \n data-container=\"\
body\"\n data-icon-base=\"fa\"\n data-tick-icon=\"fa-check\"\n\
\ data-show-subtext=\"true\"\n data-selected-text-format=\"count\
\ > 3\"\n/>\n<script>\n // To style only selects with the my-select class\n\
\ $.fn.selectpicker.Constructor.BootstrapVersion = '3';\n $('.select-picker').selectpicker();\n\
\ // data-live-search=\"true\"\n \n</script>\n"}
\ > 3\"\n/>\n<script>\n $.fn.selectpicker.Constructor.BootstrapVersion = '3';\n\
\ $('.select-picker').selectpicker();\n</script>\n"}
event_bindings: {}

0 comments on commit fda2b83

Please # to comment.