Metodo para informacion de eventos en el servicio web

This commit is contained in:
2019-11-08 09:30:50 -07:00
parent 2535217c2b
commit fb772cb31e
4 changed files with 336 additions and 248 deletions

View File

@@ -495,7 +495,7 @@
if (this.checked) {
total = total + 1;
}
if (total == 5) {
if (total == 7) {
alert("Ya tiene el maximo numero de comandos favoritos para asignar.");
this.checked = false;
return false;
@@ -513,9 +513,22 @@
}
for (let i = thantes; i < thclick; i++) {
let th = $('<th></th>');
let input = $('<input type="checkbox" class="chkAll">')
let input = $('<input type="checkbox" class="chkAll" onclick="verficaFavoritos();">')
th.append(input);
var total = 0;
input.click(function () {
var total = 0;
$(".ChecaFavoritos > input").each(function () {
if (this.checked) {
total = total + 1;
}
if (total == 7) {
alert("Ya tiene el maximo numero de comandos favoritos para asignar.");
this.checked = false;
return false;
}
});
$('#' + gv + ' tr td:nth-child(' + i + ') input[type="checkbox"]:not([disabled="disabled"])').prop("checked", input.is(":checked"))
});
tr.append(th);