Changeset 7356


Ignore:
Timestamp:
May 4, 2017, 11:14:21 AM (5 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #2083: Auto-parse the selected file in the "Test with file" function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.11-stable/www/common/plugin/test_with_file.js

    r6540 r7356  
    5353   
    5454    test.initParameters();
     55    test.autoParse();
    5556  }
    5657 
     
    9596    var response = JSON.parse(request.responseText);
    9697    var charset = response.characterSet;
     98    var frm = document.forms['testwithfile'];
    9799    if (charset)
    98100    {
    99       var frm = document.forms['testwithfile'];
    100101      Forms.selectListOption(frm.charset, charset);
     102    }
     103    test.autoParse();
     104  }
     105 
     106  // Parse the selected file if we have the required parameters
     107  test.autoParse = function()
     108  {
     109    var frm = document.forms['testwithfile'];
     110    if (Strings.trim(frm.path.value) != '' && Strings.trim(frm.dataSplitter.value) != '')
     111    {
     112      test.parseFile();
    101113    }
    102114  }
Note: See TracChangeset for help on using the changeset viewer.