Skip to content
Snippets Groups Projects
Commit c615c079 authored by Vaibhav Mule's avatar Vaibhav Mule
Browse files

fix indentation

parent 84bd84ff
No related branches found
No related tags found
No related merge requests found
/* global jQuery */
(function($) {
$.fn.select2.amd.require(
[
......@@ -10,7 +9,7 @@
$(function () {
$('.django-select2-checkboxes').each(function (i, element) {
var $element = $(element)
var $element = $(element);
$element.select2({
placeholder: $element.data('placeholder'),
......@@ -19,13 +18,13 @@
if (!data.selected.length) {
return filterType
} else if (data.selected.length == data.all.length ) {
} else if (data.selected.length == data.all.length) {
return 'All ' + filterType + ' selected';
}
return data.selected.length + ' of ' + data.all.length + ' ' + filterType + ' selected';
},
selectionAdapter: SelectionAdapter,
resultsAdapter: ResultsAdapter
returnesultsAdapter: ResultsAdapter
});
});
......
......@@ -69,31 +69,26 @@ $dropdown-height: 45px;
.select2-results__option {
padding: 0;
&[aria-selected='true'] {
&::before {
background: url('./../../images/tick.svg') $color--dark-blue center no-repeat;
background-size: 12px;
border: 1px solid $color--dark-blue;
content: '';
}
display: flex;
align-items: center;
padding: 6px;
&::before {
min-width: 20px;
height: 20px;
margin-right: 10px;
background: $color--white;
border: 1px solid $color--mid-grey;
content: '';
}
display: flex;
align-items: center;
padding: 6px;
&[aria-selected='true'] {
&::before {
min-width: 20px;
height: 20px;
margin-right: 10px;
background: $color--white;
border: 1px solid $color--mid-grey;
background: url('./../../images/tick.svg') $color--dark-blue center no-repeat;
background-size: 12px;
border: 1px solid $color--dark-blue;
content: '';
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment