Organizations: Click anywhere in the list item to open
Suggestion by Dr. Sybren
This commit is contained in:
parent
dd3cfe80ef
commit
ea9af92bd4
@ -248,6 +248,7 @@
|
|||||||
box-shadow: 1px 1px 0 rgba(black, .1)
|
box-shadow: 1px 1px 0 rgba(black, .1)
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
|
cursor: pointer
|
||||||
.projects__list-details a.title
|
.projects__list-details a.title
|
||||||
color: $color-text-dark-primary
|
color: $color-text-dark-primary
|
||||||
|
|
||||||
|
@ -154,6 +154,20 @@ script.
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('li.projects__list-item').click(function(e){
|
||||||
|
url = $(this).data('url');
|
||||||
|
if (typeof url === 'undefined') return;
|
||||||
|
|
||||||
|
window.location.href = url;
|
||||||
|
if (console) console.log(url);
|
||||||
|
|
||||||
|
$(this).addClass('active');
|
||||||
|
$(this).find('.projects__list-thumbnail i')
|
||||||
|
.removeAttr('class')
|
||||||
|
.addClass('pi-spin spin');
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
{% if open_organization_id %}
|
{% if open_organization_id %}
|
||||||
$(function() { item_open('{{ open_organization_id }}', false); });
|
$(function() { item_open('{{ open_organization_id }}', false); });
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user