Add clickable rows in dashboard
parent
59c1620e89
commit
a74c3bff71
@ -0,0 +1,30 @@
|
|||||||
|
$(function(){
|
||||||
|
$('.clickable').click(function(event)
|
||||||
|
{
|
||||||
|
if($(this).data('url'))
|
||||||
|
{
|
||||||
|
url = $(this).data('url');
|
||||||
|
|
||||||
|
if(event.which == 1)
|
||||||
|
{
|
||||||
|
if($(this).hasClass('external'))
|
||||||
|
{
|
||||||
|
window.open(url);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
window.location = url;
|
||||||
|
}
|
||||||
|
|
||||||
|
event.stopPropagation();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if(event.which == 2)
|
||||||
|
{
|
||||||
|
window.open(url);
|
||||||
|
event.stopPropagation();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue