make whole card clickable
This commit is contained in:
parent
b1680a11af
commit
1911a1211b
7 changed files with 126 additions and 84 deletions
9
hub/services/static/js/servala-addons.js
Normal file
9
hub/services/static/js/servala-addons.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
function cardClicked(event, url) {
|
||||
// Don't navigate if the click was on a button or link
|
||||
if (event.target.closest('.clickable-button') || event.target.closest('.clickable-link')) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Navigate to the provider detail page
|
||||
window.location.href = url;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue