This commit is contained in:
Diatrex 2020-06-05 12:21:16 +03:00
commit bbd993157a
4 changed files with 14 additions and 7 deletions

View File

@ -1,6 +1,7 @@
.dropleft-edit {
right: 0;
top: 40%;
z-index: 5;
}
.dropleft-edit button {
transform: rotate(-90deg) translate(0, -100%);

View File

@ -47,8 +47,6 @@
/* Mobile filter */
.mobile-list-action {
margin-left: -30px;
margin-right: -30px;
border: 1px solid #dee2e68a;
}
@ -76,6 +74,10 @@
background: #c9c9c9;
}
.mobile-list-action div:last-child a:after {
content: none;
}
.mobile-list-action i {
font-size: 19px;
color: #a1a1a1;

View File

@ -144,7 +144,7 @@ $('.set_category').on('click', function () {
});
// Move filter on small screen
$(window).resize(function() {
$(window).on("load resize", function () {
const width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
if (width <= 575) {
const detach = $('#listFilterForm').detach();

View File

@ -176,10 +176,14 @@ $('.ad-info-right-bar-video').tooltip({
$("#listFilterForm").submit(function(e) {
const inputs = $('#listFilterForm :input');
[...inputs].forEach((input) => {
if ($(input).val() == ""
|| $(input).prop("checked") == false
|| $(input).find(':selected').val() == "") {
$(input).prop('disabled', true);
if (input.type === 'checkbox' || input.type === 'radio') {
if ($(input).prop("checked") == false) {
$(input).prop('disabled', true);
}
} else {
if ($(input).val() == "" || $(input).find(':selected').val() == "") {
$(input).prop('disabled', true);
}
}
});
});