Uncaught ReferenceError: LocalEmpCallback is not defined

0

In one view I have the following code:

<tr id="[email protected]" class="ct-row" data-status="@value.PerfilEmpleadoCentroID">

    <td onclick="LocalEmpCallback(@value.EmpleadoID)">
        <p class="list-text">@value.EmpleadoID</p>
    </td>

    <td onclick="LocalEmpCallback(@value.EmpleadoID)">
        <p class="list-text">@value.IDEmpleadoCentro</p>
    </td>

    <td onclick="LocalEmpCallback(@value.EmpleadoID)">
        <p class="list-text"><span class="label @labelTipo",id="labeltext">@labelText</span></p>
    </td>

    <td onclick="LocalEmpCallback(@value.EmpleadoID)">
        <p class="list-text">@value.InfoContacto.Nombre @value.InfoContacto.Apellidos</p>
    </td>

</tr>

I also have the following javascript functions outside the document.ready:

function LocalEmpCallback(IDTipo) {
    console.log("Pasa por aquí");
    $("#modalGListEmpleados").modal('hide');
    GListCallback(2, IDTipo);
};

and the other function:

function GListCallback(tipo, IDTipo) {

    var url = '/Permisos/Editar?id=-1&empID=' + IDTipo;
    window.location.href = url;
};

I do not know what I'm doing wrong but I always get the error of:

  

Uncaught ReferenceError: LocalEmpCallback is not defined.

Thanks for the help

    
asked by Adrián Blanco 16.11.2018 в 11:45
source

0 answers