Changeset 1745


Ignore:
Timestamp:
Apr 11, 2011, 12:16:47 PM (6 years ago)
Author:
work@…
Message:
  • resolves #396, disabled all key presses altogether in all fields that have a datepicker attached
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/js/studywizard.js

    r1702 r1745  
    2323        attachDateTimePickers();
    2424        disableKeys();
     25        disableDatePickerKeys();
    2526
    2627        // handle and initialize table(s)
     
    8687        // initialize accordeon(s)
    8788        $("#accordion").accordion({autoHeight: false});
     89}
     90
     91// disable all key presses in every text element which has a datapicker
     92// attached
     93function disableDatePickerKeys() {
     94        $(".hasDatepicker").each(function() {
     95                $(this).bind('keypress', function(e) { return false; });
     96        });
    8897}
    8998
Note: See TracChangeset for help on using the changeset viewer.