2011-12-27 22:13:17 +01:00
|
|
|
function check_all(id) {
|
|
|
|
var obj = document.getElementById(id);
|
|
|
|
var boxes = obj.getElementsByTagName("input");
|
2014-12-06 21:39:59 +01:00
|
|
|
for ( var i = 0; i < boxes.length; i++) {
|
|
|
|
if (boxes[i].type == "checkbox" && !boxes[i].disabled)
|
2011-12-27 22:13:17 +01:00
|
|
|
boxes[i].checked = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function uncheck_all(id) {
|
|
|
|
var obj = document.getElementById(id);
|
|
|
|
var boxes = obj.getElementsByTagName("input");
|
2014-12-06 21:39:59 +01:00
|
|
|
for ( var i = 0; i < boxes.length; i++) {
|
|
|
|
if (boxes[i].type == "checkbox")
|
2011-12-27 22:13:17 +01:00
|
|
|
boxes[i].checked = false;
|
|
|
|
}
|
|
|
|
}
|
2014-12-06 21:39:59 +01:00
|
|
|
|
|
|
|
$(function() {
|
|
|
|
$('form').submit(function(ev) {
|
|
|
|
$('input[type="submit"]').prop("readonly", true).addClass("disabled");
|
|
|
|
return true;
|
|
|
|
});
|
|
|
|
});
|