I am getting Object does not support property or method  trim()  javascript 
error . Is there a workaround to this error in cas.js . the code is below .

function disableEmptyInputFormSubmission() {

    $('#fm1 input[name="username"],[name="password"]').on("input", function 
(event) {
        var enableSubmission = $('#fm1 input[name="username"]').val().trim() &&
                               $('#fm1 input[name="password"]').val().trim();

        if (enableSubmission) {
            $("#fm1 input[name=submit]").removeAttr('disabled');
            event.stopPropagation();
        } else {
            $("#fm1 input[name=submit]").attr('disabled', 'true');
        }
    });

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/e96c32d0-54b4-48de-8903-0e8ebcfed924%40apereo.org.

Reply via email to