Javascript coding style modifications.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
This commit is contained in:
Hugues Peccatte 2014-09-14 15:51:40 +02:00
parent ebda4090db
commit f0c1480ee7

View File

@ -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