Subversion Repositories DevTools

Rev

Rev 7261 | Rev 7293 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7261 Rev 7291
Line 623... Line 623...
623
    }
623
    }
624
 
624
 
625
    return newWindow;
625
    return newWindow;
626
}
626
}
627
 
627
 
-
 
628
//  Auto enable/disable a submit button in a simple form
-
 
629
//  consiting of a single input and a submit button
-
 
630
//  Add 'formBtnEnable' to the input element.
-
 
631
//
-
 
632
$(document).ready(function () {
-
 
633
    $('.formBtnEnable').closest('form').find(':submit').attr('disabled', true)
-
 
634
    $('.formBtnEnable').bind('keyup blur', function(){
-
 
635
        $(this).closest('form').find(':submit').attr('disabled', $(this).val().length ==0 );
-
 
636
    });
-
 
637
});
-
 
638
 
-
 
639
 
-
 
640
 
628
 
641
 
629
 
642
 
630
 
643
 
631
 
644
 
632
 
645