Javascript coding style modifications.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
This commit is contained in:
parent
ebda4090db
commit
f0c1480ee7
@ -461,15 +461,12 @@ PMA_DROP_IMPORT = {
|
||||
* @return bool
|
||||
*/
|
||||
_hasFiles: function (event) {
|
||||
if (typeof event.originalEvent.dataTransfer.types === 'undefined' ||
|
||||
return !(typeof event.originalEvent.dataTransfer.types === 'undefined' ||
|
||||
$.inArray('Files', event.originalEvent.dataTransfer.types) < 0 ||
|
||||
$.inArray(
|
||||
'application/x-moz-nativeimage',
|
||||
event.originalEvent.dataTransfer.types
|
||||
) >= 0) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
) >= 0);
|
||||
},
|
||||
/**
|
||||
* Triggered when dragged file is being dragged over PMA UI
|
||||
|
||||
Loading…
Reference in New Issue
Block a user