No repeticion de
Palabras claves en el catalogo. git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C321
This commit is contained in:
parent
372c5dea9d
commit
bc5f5e33f9
1 changed files with 18 additions and 1 deletions
|
|
@ -740,9 +740,26 @@ this.BuscarPalabraClave = function () {
|
|||
|
||||
this.AgregarPalabraClave = function () {
|
||||
|
||||
if (!confirm("¿Desea agregar otra palabra clave?")) return;
|
||||
|
||||
var tablePalabrasClaves = $('#tablePalabraClave').DataTable();
|
||||
|
||||
|
||||
var countRow = tablePalabrasClaves
|
||||
.columns([0])
|
||||
.data()
|
||||
.flatten()
|
||||
.filter(function (value, index) {
|
||||
return value == $("#hiddenPalabraClave").val() ? true : false;
|
||||
}).length;
|
||||
|
||||
if (countRow > 0) {
|
||||
toastr.warning("La palabra selecciona ya está incluida en el listado.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (!confirm("¿Desea agregar otra palabra clave?")) return;
|
||||
|
||||
|
||||
var option = $("#ucItemsEliminar").html();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue