Commit b1808597 authored by tijsdeboeck's avatar tijsdeboeck Committed by jrockowitz
Browse files

Updated all outdated Choices homepage + repo links

parent b7c29196
......@@ -88,7 +88,7 @@
"installer-name": "choices"
},
"dist": {
"url": "https://github.com/jshjohnson/Choices/archive/refs/tags/v9.0.1.zip",
"url": "https://github.com/Choices-js/Choices/archive/refs/tags/v9.0.1.zip",
"type": "zip"
},
"license": "MIT"
......
......@@ -2,7 +2,7 @@
* @file
* Custom base.css for Choices.js that does not conflict with any existing styles.
*
* @see https://raw.githubusercontent.com/jshjohnson/Choices/master/public/assets/styles/base.css
* @see https://raw.githubusercontent.com/Choices-js/Choices/master/public/assets/styles/base.css
*/
.choices *,
......
......@@ -7,7 +7,7 @@
'use strict';
// @see https://github.com/jshjohnson/Choices
// @see https://github.com/Choices-js/Choices
Drupal.webform = Drupal.webform || {};
Drupal.webform.choices = Drupal.webform.choices || {};
Drupal.webform.choices.options = Drupal.webform.choices.options || {};
......
......@@ -44,7 +44,7 @@ class WebformOptionsCustom extends FormElement implements WebformOptionsCustomIn
// NOTE:
// Choices is not supported by custom options because of <option> being
// removed inside the <select>.
// @see https://github.com/jshjohnson/Choices/issues/601
// @see https://github.com/Choices-js/Choices/issues/601
'#placeholder',
'#help_display',
'#size',
......
......@@ -153,7 +153,7 @@ class Select extends OptionsBase {
$form['options']['choices'] = [
'#type' => 'checkbox',
'#title' => $this->t('Choices'),
'#description' => $this->t('Replace select element with <a href=":href">Choice.js</a> select box.', [':href' => 'https://joshuajohnson.co.uk/Choices/']),
'#description' => $this->t('Replace select element with <a href=":href">Choice.js</a> select box.', [':href' => 'https://choices-js.github.io/Choices/']),
'#return_value' => TRUE,
'#states' => [
'disabled' => [
......
......@@ -914,7 +914,7 @@ abstract class WebformCompositeBase extends WebformElementBase implements Webfor
$form['composite']['choices'] = [
'#type' => 'checkbox',
'#title' => $this->t('Choices'),
'#description' => $this->t('Replace select element with <a href=":href">Choice.js</a> select box.', [':href' => 'https://joshuajohnson.co.uk/Choices/']),
'#description' => $this->t('Replace select element with <a href=":href">Choice.js</a> select box.', [':href' => 'https://choices-js.github.io/Choices/']),
'#return_value' => TRUE,
'#states' => [
'disabled' => [
......
......@@ -516,8 +516,8 @@ class WebformLibrariesManager implements WebformLibrariesManagerInterface {
'title' => $this->t('Choices'),
'description' => $this->t('Choices.js is a lightweight, configurable select box/text input plugin. Similar to Select2 and Selectize but without the jQuery dependency.'),
'notes' => $this->t('Choices.js is used to improve the user experience for select menus. Choices.js is an alternative to Select2.'),
'homepage_url' => Url::fromUri('https://joshuajohnson.co.uk/Choices/'),
'download_url' => Url::fromUri('https://github.com/jshjohnson/Choices/archive/refs/tags/v9.0.1.zip'),
'homepage_url' => Url::fromUri('https://choices-js.github.io/Choices/'),
'download_url' => Url::fromUri('https://github.com/Choices-js/Choices/archive/refs/tags/v9.0.1.zip'),
'version' => '9.0.1',
'license' => 'MIT',
];
......
......@@ -1028,15 +1028,15 @@ imce.input:
# External libraries.
libraries.choices:
remote: https://github.com/jshjohnson/Choices
remote: https://github.com/Choices-js/Choices
version: '9.0.1'
license:
name: MIT
url: https://github.com/jshjohnson/Choices/blob/master/LICENSE
url: https://github.com/Choices-js/Choices/blob/master/LICENSE
gpl-compatible: true
directory: choices
cdn:
/libraries/choices/: https://cdn.jsdelivr.net/gh/jshjohnson/Choices@v9.0.1/
/libraries/choices/: https://cdn.jsdelivr.net/gh/Choices-js/Choices@v9.0.1/
css:
component:
css/webform.choices.base.css: { }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment