7984 |
22 Jun 21 |
nicklas |
/* $Id $ |
7984 |
22 Jun 21 |
nicklas |
2 |
------------------------------------------------------------------ |
7984 |
22 Jun 21 |
nicklas |
Copyright (C) 2021 Nicklas Nordborg |
7984 |
22 Jun 21 |
nicklas |
4 |
|
7984 |
22 Jun 21 |
nicklas |
This file is part of BASE - BioArray Software Environment. |
7984 |
22 Jun 21 |
nicklas |
Available at http://base.thep.lu.se/ |
7984 |
22 Jun 21 |
nicklas |
7 |
|
7984 |
22 Jun 21 |
nicklas |
BASE is free software; you can redistribute it and/or |
7984 |
22 Jun 21 |
nicklas |
modify it under the terms of the GNU General Public License |
7984 |
22 Jun 21 |
nicklas |
as published by the Free Software Foundation; either version 3 |
7984 |
22 Jun 21 |
nicklas |
of the License, or (at your option) any later version. |
7984 |
22 Jun 21 |
nicklas |
12 |
|
7984 |
22 Jun 21 |
nicklas |
BASE is distributed in the hope that it will be useful, |
7984 |
22 Jun 21 |
nicklas |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
7984 |
22 Jun 21 |
nicklas |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
7984 |
22 Jun 21 |
nicklas |
GNU General Public License for more details. |
7984 |
22 Jun 21 |
nicklas |
17 |
|
7984 |
22 Jun 21 |
nicklas |
You should have received a copy of the GNU General Public License |
7984 |
22 Jun 21 |
nicklas |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
7984 |
22 Jun 21 |
nicklas |
20 |
------------------------------------------------------------------ |
7984 |
22 Jun 21 |
nicklas |
21 |
|
7984 |
22 Jun 21 |
nicklas |
@author Nicklas |
7984 |
22 Jun 21 |
nicklas |
23 |
*/ |
7984 |
22 Jun 21 |
nicklas |
'use strict'; |
7984 |
22 Jun 21 |
nicklas |
25 |
|
7984 |
22 Jun 21 |
nicklas |
var FileManager = function() |
7984 |
22 Jun 21 |
nicklas |
27 |
{ |
7984 |
22 Jun 21 |
nicklas |
var manager = {}; |
7984 |
22 Jun 21 |
nicklas |
29 |
|
7984 |
22 Jun 21 |
nicklas |
30 |
|
7984 |
22 Jun 21 |
nicklas |
manager.initPage = function() |
7984 |
22 Jun 21 |
nicklas |
32 |
{ |
7984 |
22 Jun 21 |
nicklas |
Events.addEventHandler(document.body, 'drop', manager.noDragDrop); |
7984 |
22 Jun 21 |
nicklas |
Events.addEventHandler(document.body, 'dragover', manager.noDragDrop); |
7984 |
22 Jun 21 |
nicklas |
35 |
} |
7984 |
22 Jun 21 |
nicklas |
36 |
|
7984 |
22 Jun 21 |
nicklas |
manager.noDragDrop = function(event) |
7984 |
22 Jun 21 |
nicklas |
38 |
{ |
7984 |
22 Jun 21 |
nicklas |
event.dataTransfer.dropEffect = "none"; |
7984 |
22 Jun 21 |
nicklas |
// Stop all default things from happening |
7984 |
22 Jun 21 |
nicklas |
event.preventDefault(); |
7984 |
22 Jun 21 |
nicklas |
event.stopPropagation(); |
7984 |
22 Jun 21 |
nicklas |
43 |
} |
7984 |
22 Jun 21 |
nicklas |
44 |
|
7984 |
22 Jun 21 |
nicklas |
return manager; |
7984 |
22 Jun 21 |
nicklas |
46 |
}(); |
7984 |
22 Jun 21 |
nicklas |
47 |
|
7984 |
22 Jun 21 |
nicklas |
Doc.onLoad(FileManager.initPage); |
7984 |
22 Jun 21 |
nicklas |
49 |
|
7984 |
22 Jun 21 |
nicklas |
50 |
|