Fix validation per variabile id_record
This commit is contained in:
parent
ab94b61fe1
commit
d8177bda1c
|
@ -129,6 +129,11 @@ class HTMLWrapper implements WrapperInterface
|
||||||
var message = container.find("span");
|
var message = container.find("span");
|
||||||
var icon = container.find("i");
|
var icon = container.find("i");
|
||||||
|
|
||||||
|
var id_record = "'.$id_record.'";
|
||||||
|
if ($(".modal-content").is(":visible")) {
|
||||||
|
var id_record = "";
|
||||||
|
}
|
||||||
|
|
||||||
icon.attr("class", "fa fa-spinner fa-spin");
|
icon.attr("class", "fa fa-spinner fa-spin");
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -136,7 +141,7 @@ class HTMLWrapper implements WrapperInterface
|
||||||
type: "post",
|
type: "post",
|
||||||
data: {
|
data: {
|
||||||
id_module: "'.$id_module.'",
|
id_module: "'.$id_module.'",
|
||||||
id_record: "'.$id_record.'",
|
id_record: id_record,
|
||||||
name: "'.$name.'",
|
name: "'.$name.'",
|
||||||
value: value,
|
value: value,
|
||||||
op: "validate",
|
op: "validate",
|
||||||
|
|
Loading…
Reference in New Issue