Skip to content

Clear out select2 references and library (CFM-268) #117

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ files and utilities for further information:
MIT License
https://github.com/KnpLabs/php-github-api

Select 2
MIT License
https://select2.org/

Shibboleth Embedded Discovery Service (app/webroot/js/eds)
Apache 2.0
https://shibboleth.net/products/embedded-discovery-service.html
Expand Down
10 changes: 0 additions & 10 deletions app/templates/element/javascript.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,6 @@
// Make all select form controls Bootstrappy
$("select").addClass("form-select");

// Use select2 library everywhere except
// XXX TODO: Find a replacement for Select2 - it is not accessible.
// - duet-date
// $("select").not("#limit").not(".duet-date__select--month").not(".duet-date__select--year").select2({
// width: '100%',
// tags: true,
// placeholder: "-- Select --",
// allowClear: true
// });

// Generic row click handling
// First capture mouse location to test if we're clicking or drag-selecting (for copy)
var mouseDownEvent = null;
Expand Down
4 changes: 1 addition & 3 deletions app/templates/layout/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
<!-- Load CSS -->
<?= $this->Html->css([
'bootstrap/bootstrap.min',
'select2/select2.min',
'co-color',
'co-base',
'co-responsive'
Expand All @@ -67,8 +66,7 @@
<!-- Load Bootstrap and jQuery (other scripts at bottom) -->
<?= $this->Html->script([
'bootstrap/bootstrap.bundle.min.js',
'jquery/jquery.min.js',
'select2/select2.min.js'
'jquery/jquery.min.js'
]) . PHP_EOL ?>

<!-- Include external files and scripts -->
Expand Down
4 changes: 1 addition & 3 deletions app/templates/layout/iframe.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
<!-- Load CSS -->
<?= $this->Html->css([
'bootstrap/bootstrap.min',
'select2/select2.min',
'co-color',
'co-base',
'co-responsive'
Expand All @@ -67,8 +66,7 @@
<!-- Load Bootstrap and jQuery (other scripts at bottom) -->
<?= $this->Html->script([
'bootstrap/bootstrap.bundle.min.js',
'jquery/jquery.min.js',
'select2/select2.min.js'
'jquery/jquery.min.js'
]) . PHP_EOL ?>

<!-- Include external files and scripts -->
Expand Down
8 changes: 0 additions & 8 deletions app/webroot/css/co-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1831,12 +1831,4 @@ html.dark-mode .btn-default:active {
footer {
text-align: center;
padding: 2em 2em 1em;
}
/* Select2 */
.select2-container--default .select2-selection--single {
border: 1px solid var(--cmg-color-bg-006);
background-color: var(--cmg-color-body-bg);
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
color: var(--cmg-color-txt-soft);
}
1 change: 0 additions & 1 deletion app/webroot/css/select2/select2.min.css

This file was deleted.

2 changes: 0 additions & 2 deletions app/webroot/js/select2/select2.min.js

This file was deleted.