rafandoo / HelpDeskRplus

Found the usage of undeclared variables JS-0125
Bug risk
Critical
a year agoa year old
'selectCity' is not defined
 9    } else {
10        $.get(url, function(data){
11            $("#state").val(data.state);
12            selectCity(data.city);13            $("#neighborhood").val(data.neighborhood);
14            $("#street").val(data.street);
15            $("#complement").val(data.complement);
12        d = moment.duration(amountHours);
13        h = Math.floor(d.asHours());
14        if (h < 10) h = "0" + h;
15        s = h + moment.utc(amountHours).format(":mm");16        $('#amount_hours').val(s);
17    });
18});
12        d = moment.duration(amountHours);
13        h = Math.floor(d.asHours());
14        if (h < 10) h = "0" + h;
15        s = h + moment.utc(amountHours).format(":mm");16        $('#amount_hours').val(s);
17    });
18});
'moment' is not defined
12        d = moment.duration(amountHours);
13        h = Math.floor(d.asHours());
14        if (h < 10) h = "0" + h;
15        s = h + moment.utc(amountHours).format(":mm");16        $('#amount_hours').val(s);
17    });
18});
13        h = Math.floor(d.asHours());
14        if (h < 10) h = "0" + h;
15        s = h + moment.utc(amountHours).format(":mm");
16        $('#amount_hours').val(s);17    });
18});