Changeset 1745

Show
Ignore:
Timestamp:
11-04-11 12:16:47 (3 years ago)
Author:
work@…
Message:

- resolves #396, disabled all key presses altogether in all fields that have a datepicker attached

Files:
1 modified

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