Changeset 276


Ignore:
Timestamp:
Apr 3, 2012, 3:42:05 PM (8 years ago)
Author:
work@…
Message:
  • fixed an issue where (un)checking radio buttons was done the wrong way
File:
1 edited

Legend:

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

    r236 r276  
    249249*/
    250250function updateControls(data) {
    251     $('#samplePerRow').attr('checked', !data.isColumnOriented);
    252     $('#samplePerColumn').attr('checked', data.isColumnOriented);
     251    if (data.isColumnOriented) {
     252        $('#samplePerRow').removeAttr('checked');
     253        $('#samplePerColumn').attr('checked', 'checked');
     254    } else {
     255        $('#samplePerColumn').removeAttr('checked');
     256        $('#samplePerRow').attr('checked', 'checked');
     257    }
     258
    253259    if (data.parseInfo) $('#delimiter').val(data.parseInfo.delimiter);
    254260}
Note: See TracChangeset for help on using the changeset viewer.