From 330ae4a165e9326b419f24f285cafa06aead91cc Mon Sep 17 00:00:00 2001 From: Nagaraj Tantri Date: Fri, 9 Aug 2019 17:53:09 +0530 Subject: [PATCH 1/2] Updated the docs to add data-disabled to be added as an info - not allowed --- pages/03.configuration/03.data-attributes/docs.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/03.configuration/03.data-attributes/docs.md b/pages/03.configuration/03.data-attributes/docs.md index 6a2a2ae0..7f4c7e8c 100644 --- a/pages/03.configuration/03.data-attributes/docs.md +++ b/pages/03.configuration/03.data-attributes/docs.md @@ -14,6 +14,8 @@ It is recommended that you declare your configuration options by [passing in an ``` +>>> Some options are not supported as `data-*`, for example `disabled` as it's not a Javascript option, but it's an HTML [attribute](/configuration/options-api). + ## Nested (subkey) options Sometimes, you have options that are nested under a top-level option. For example, the options under the `ajax` option: From 3f8c3c54a3962894c8a395b105e75a156f9ad4e3 Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Wed, 21 Aug 2019 21:22:19 -0400 Subject: [PATCH 2/2] Bump versions for Select2 4.0.9 release --- pages/01.getting-started/01.installation/docs.md | 4 ++-- pages/13.i18n/docs.md | 2 +- themes/site/templates/partials/base.html.twig | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/01.getting-started/01.installation/docs.md b/pages/01.getting-started/01.installation/docs.md index 2ba240db..e2ad4f07 100644 --- a/pages/01.getting-started/01.installation/docs.md +++ b/pages/01.getting-started/01.installation/docs.md @@ -13,8 +13,8 @@ A CDN (content delivery network) is the fastest way to get up and running with S Select2 is hosted on both the [cdnjs](https://cdnjs.com/libraries/select2) and [jsDelivr](https://www.jsdelivr.com/#!select2) CDNs. Simply include the following lines of code in the `` section of your page: ``` - - + + ``` >>> Immediately following a new release, it takes some time for CDNs to catch up and get the new versions live on the CDN. diff --git a/pages/13.i18n/docs.md b/pages/13.i18n/docs.md index 8a57d825..9ba95cc6 100644 --- a/pages/13.i18n/docs.md +++ b/pages/13.i18n/docs.md @@ -7,7 +7,7 @@ process: never_cache_twig: true --- -{% do assets.addJs('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/i18n/es.js', 90) %} +{% do assets.addJs('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.9/js/i18n/es.js', 90) %} ## Message translations diff --git a/themes/site/templates/partials/base.html.twig b/themes/site/templates/partials/base.html.twig index a1df0646..19f94d07 100644 --- a/themes/site/templates/partials/base.html.twig +++ b/themes/site/templates/partials/base.html.twig @@ -17,7 +17,7 @@ {% do assets.addCss('theme://css/custom.css',100) %} {% do assets.addCss('theme://css/font-awesome.min.css',100) %} {% do assets.addCss('theme://css/featherlight.min.css') %} - {% do assets.addCss('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/css/select2.min.css') %} + {% do assets.addCss('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.9/css/select2.min.css') %} {% do assets.addCss('theme://css/s2-docs.css', 100) %} {% do assets.addCss('theme://css/theme.css',100) %} @@ -33,7 +33,7 @@ {% block javascripts %} {% do assets.addJs('jquery',101) %} {% do assets.addJs('theme://js/modernizr.custom.71422.js',100) %} - {% do assets.addJs('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.full.min.js', 100) %} + {% do assets.addJs('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.9/js/select2.full.min.js', 100) %} {% do assets.addJs('https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js', 100) %} {% do assets.addJs('theme://js/featherlight.min.js') %} {% do assets.addJs('theme://js/clipboard.min.js') %}