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

Changeset 4508

Show
Ignore:
Timestamp:
01/24/12 17:24:02 (4 months ago)
Author:
tboutell
Message:

* Don't show the drop area in browsers that don't support it
* Let the drop area go away again at appropriate times if we're not always showing it

Files:
1 modified

Legend:

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

    r4506 r4508  
    589589            // only fire when leaving document out 
    590590            if ( ! relatedTarget || relatedTarget.nodeName == "HTML"){                
    591                 dropArea.style.display = 'none';                                             
     591                if (!this._options.alwaysShowDropArea) 
     592                { 
     593                  dropArea.style.display = 'none';                                             
     594                } 
    592595            } 
    593596        });                 
     
    744747    }, 
    745748    _isValidFileDrag: function(e){ 
     749        // IE flunks this test (for now), preventing an error below if you 
     750        // try to drag a file in, which IE doesn't really support yet. - tom@punkave.com 
     751        if (!window.FileReader) 
     752        { 
     753          return false; 
     754        } 
    746755        var dt = e.dataTransfer, 
    747756            // do not check dt.types.contains in webkit, because it crashes safari 4