To participate you must create an account on apostrophenow.org. If you have already done so, click Login.
Changeset 4508
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r4506
|
r4508
|
|
| 589 | 589 | // only fire when leaving document out |
| 590 | 590 | if ( ! relatedTarget || relatedTarget.nodeName == "HTML"){ |
| 591 | | dropArea.style.display = 'none'; |
| | 591 | if (!this._options.alwaysShowDropArea) |
| | 592 | { |
| | 593 | dropArea.style.display = 'none'; |
| | 594 | } |
| 592 | 595 | } |
| 593 | 596 | }); |
| … |
… |
|
| 744 | 747 | }, |
| 745 | 748 | _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 | } |
| 746 | 755 | var dt = e.dataTransfer, |
| 747 | 756 | // do not check dt.types.contains in webkit, because it crashes safari 4 |
Download in other formats: