Changeset 1654 for trunk/web-app


Ignore:
Timestamp:
Mar 21, 2011, 10:34:04 AM (10 years ago)
Author:
robert@…
Message:

Fixed a bug in uploading files. The bug appeared in the simple wizard, but probably also in other places

File:
1 edited

Legend:

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

    r1553 r1654  
    296296                                $('#' + field_id + 'Delete').hide();
    297297                        } else {
     298                                // Sometimes, the response is returned with HTML tags.
     299                                // It is unknown why this happens, but the tags are not needed.
     300                                response = response.replace(/<\/?[^>]+>/gi, '');
     301
    298302                                $('#' + field_id).val(response);
    299303                                $('#' + field_id + 'Example').html('Uploaded ' + createFileHTML(file));
Note: See TracChangeset for help on using the changeset viewer.