Metodo para informacion de eventos en el servicio web
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user