Changeset 4 for trunk/grails-app/taglib


Ignore:
Timestamp:
Jan 17, 2011, 3:49:20 PM (9 years ago)
Author:
robert@…
Message:

Implemented trash in order to prevent deletion of data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/taglib/nl/tno/metagenomics/UploadTagLib.groovy

    r2 r4  
    2323                out << '<script type="text/javascript">';
    2424                out << '  $(document).ready( function() { ';
    25                 out << '    var filename = "' + attrs.value + '";';
     25                out << '    var filename = "' + ( attrs.value ?: '' ) + '";';
    2626                out << '    fileUploadField( "' + attrs.name + '", ' + ( multiple ? 'true' : 'false' ) + ( attrs.onUpload ? ', function(params) { ' + attrs.onUpload + '(params); }' : '' ) + ( attrs.onDelete ? ', function(params) { ' + attrs.onDelete + '(params); }' : '' ) + ');';
    2727                out << '    if( filename != "" ) {';
Note: See TracChangeset for help on using the changeset viewer.