calebasse / calebasse / static / js / calebasse.tables.js @ bbf89bd4
1 |
(function ($) { |
---|---|
2 |
$(function () { |
3 |
/* Add click handler for tables of models */
|
4 |
$('tr[data-pk]').click(function (event) { |
5 |
var pk = $(this).data('pk'); |
6 |
if (! $(event.target).is('button')) { |
7 |
window.location.href=pk+'/'; |
8 |
}
|
9 |
});
|
10 |
});
|
11 |
})(window.jQuery) |