Skip to content

I need that close bottom, close the div and erase the data not submit. #79

@georocha24

Description

@georocha24

submit: function(e, v, m, f, anio){
//e.prevendDefault();
var ansSeg = m.children("div").children('#txtSeguimiento');
var orden = m.children("div").children('#hdnOrden');
if (ansSeg.val() != "") {
jQuery.post('/ajsources/callCenterXml.php', {'sg': ansSeg.val(),'q': orden.val(),'nty': 'addSeg', 'a': anio});
}
if ($("#hdnDialog").val() === "1") {
verSeguimiento2(orden.val().substring(6), anio);
}
else{
verSeguimiento(orden.val().substring(6));
}
return true;
},
buttons: { Ok: true, Cancel: false}

when the botton Cancel it's data always go submit and insert. i need to close and erase data if should any data in the .txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions