To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 4499

Show
Ignore:
Timestamp:
01/23/12 13:16:43 (4 months ago)
Author:
tboutell
Message:

Added alwaysShowDropArea option to fileuploader. When set to true the drop area box is always shown. By default it only shows up when someone is dragging a file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostropheHTML5Plugin/trunk/web/fileuploader/fileuploader.js

    r4496 r4499  
    261261        allowedExtensions: [],                
    262262        sizeLimit: 0,    
    263         minSizeLimit: 0,                              
     263        minSizeLimit: 0,          
     264        alwaysShowDropArea: false,                     
    264265        // events 
    265266        // return false to cancel submit 
     
    575576        }); 
    576577                 
    577         dropArea.style.display = 'none'; 
     578        dropArea.style.display = this._options.alwaysShowDropArea ? 'block' : 'none'; 
    578579 
    579580        qq.attach(document, 'dragenter', function(e){