Better JS for tables
This commit is contained in:
parent
f66a54bb73
commit
ae0abb5cb3
3 changed files with 11 additions and 0 deletions
|
@ -110,6 +110,9 @@
|
|||
$(function(){
|
||||
$("table.stupidtable").stupidtable();
|
||||
});
|
||||
$("tr").click(function() {
|
||||
$(this).find("input[type=checkbox]").click()
|
||||
})
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
value="S'inscrire pour les places sélectionnées">
|
||||
</form>
|
||||
|
||||
<script type="text/javascript" src="{% static "js/joequery-Stupid-Table-Plugin/stupidtable.js" %}"></script>
|
||||
<script language="JavaScript">
|
||||
function select(check) {
|
||||
checkboxes = document.getElementsByName("spectacles");
|
||||
|
@ -52,5 +53,8 @@
|
|||
$(function(){
|
||||
$("table.stupidtable").stupidtable();
|
||||
});
|
||||
$("tr").click(function() {
|
||||
$(this).find("input[type=checkbox]").click()
|
||||
})
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
|
@ -81,10 +81,14 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
<script type="text/javascript" src="{% static "js/joequery-Stupid-Table-Plugin/stupidtable.js" %}"></script>
|
||||
<script language="JavaScript">
|
||||
$(function(){
|
||||
$("table.stupidtable").stupidtable();
|
||||
});
|
||||
$("tr").click(function() {
|
||||
$(this).find("input[type=checkbox]").click()
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue