personium / wakaba-business-app

An application that runs on the home application. Wakaba-shi Information Bank for Business.
Apache License 2.0
1 stars 2 forks source link

isNumericXXX functions not used in sendMessage.js #9

Closed dixonsiu closed 7 years ago

dixonsiu commented 7 years ago

The following functions are not used because elements are not defined.
Similarly issues in previewSendMessage.js.

$(function() {
    $("#iTerm1").blur(function() {
        if ( !isNumericYear($(this).val()) ) {
            $(this).focus();
        }
    });
});

$(function() {
    $("#iTerm2").blur(function() {
        if ( !isNumericMonth($(this).val()) ) {
            $(this).focus();
        }
    });
});

$(function() {
    $("#iTerm3").blur(function() {
        if ( !isNumericDay($(this).val()) ) {
            $(this).focus();
        }
    });
}); 

Therefore, the isNumericXXX functions are not needed, too.