mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 14:56:13 -06:00
Merge pull request #584 from openclassify/dia
#1447 [arabam-theme] 3 pages improvments
This commit is contained in:
commit
7a3c77b07f
@ -1,6 +1,7 @@
|
|||||||
.dropleft-edit {
|
.dropleft-edit {
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 40%;
|
top: 40%;
|
||||||
|
z-index: 5;
|
||||||
}
|
}
|
||||||
.dropleft-edit button {
|
.dropleft-edit button {
|
||||||
transform: rotate(-90deg) translate(0, -100%);
|
transform: rotate(-90deg) translate(0, -100%);
|
||||||
|
|||||||
@ -47,8 +47,6 @@
|
|||||||
|
|
||||||
/* Mobile filter */
|
/* Mobile filter */
|
||||||
.mobile-list-action {
|
.mobile-list-action {
|
||||||
margin-left: -30px;
|
|
||||||
margin-right: -30px;
|
|
||||||
border: 1px solid #dee2e68a;
|
border: 1px solid #dee2e68a;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,6 +74,10 @@
|
|||||||
background: #c9c9c9;
|
background: #c9c9c9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mobile-list-action div:last-child a:after {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
|
||||||
.mobile-list-action i {
|
.mobile-list-action i {
|
||||||
font-size: 19px;
|
font-size: 19px;
|
||||||
color: #a1a1a1;
|
color: #a1a1a1;
|
||||||
|
|||||||
@ -141,4 +141,13 @@ $('.set_category').on('click', function () {
|
|||||||
|
|
||||||
$('#filterModal').find('form').attr("action", '/advs/list');
|
$('#filterModal').find('form').attr("action", '/advs/list');
|
||||||
$('#filterModal').modal('toggle');
|
$('#filterModal').modal('toggle');
|
||||||
})
|
});
|
||||||
|
|
||||||
|
// Move filter on small screen
|
||||||
|
$(window).on("load resize", function () {
|
||||||
|
const width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
|
||||||
|
if (width <= 575) {
|
||||||
|
const detach = $('#listFilterForm').detach();
|
||||||
|
$('#modalListFilterForm').append(detach);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|||||||
@ -176,10 +176,14 @@ $('.ad-info-right-bar-video').tooltip({
|
|||||||
$("#listFilterForm").submit(function(e) {
|
$("#listFilterForm").submit(function(e) {
|
||||||
const inputs = $('#listFilterForm :input');
|
const inputs = $('#listFilterForm :input');
|
||||||
[...inputs].forEach((input) => {
|
[...inputs].forEach((input) => {
|
||||||
if ($(input).val() == ""
|
if (input.type === 'checkbox' || input.type === 'radio') {
|
||||||
|| $(input).prop("checked") == false
|
if ($(input).prop("checked") == false) {
|
||||||
|| $(input).find(':selected').val() == "") {
|
$(input).prop('disabled', true);
|
||||||
$(input).prop('disabled', true);
|
}
|
||||||
|
} else {
|
||||||
|
if ($(input).val() == "" || $(input).find(':selected').val() == "") {
|
||||||
|
$(input).prop('disabled', true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -36,7 +36,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% include "visiosoft.module.advs::list/partials/list-filter" %}
|
<div id="modalListFilterForm"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user