Changeset 17823


Ignore:
Timestamp:
05/10/14 14:42:20 (11 years ago)
Author:
tbretz
Message:
The MC checkbox was not yet properly handled.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/viewer/index.js

    r17819 r17823  
    222222        $('#calibrated').prop('checked', false);
    223223
    224     $('#calibrated').prop('disabled', !hasCal && !drs.checked && !isMC);
    225     $('#drsfile').prop('disabled',    !hasDrs && !isMC);
     224    $('#calibrated').prop('disabled', (!hasCal && !drs.checked) || isMC);
     225    $('#drsfile').prop('disabled',     !hasDrs || isMC);
     226
    226227    $('#montecarlo').prop('checked', isMC);
    227228}
     
    245246        $('#calibrated').prop('disabled', true);
    246247        $('#drsfile').prop('disabled', true);
     248        $('#montecarlo').prop('disabled', true);
    247249    }
    248250    else
Note: See TracChangeset for help on using the changeset viewer.