Index: app/views/topology/importexport.js |
=== modified file 'app/views/topology/importexport.js' |
--- app/views/topology/importexport.js 2013-06-25 20:49:59 +0000 |
+++ app/views/topology/importexport.js 2013-06-26 13:58:04 +0000 |
@@ -98,7 +98,14 @@ |
reader.readAsText(file); |
}); |
} else { |
- env.importEnvironment(evt._event.dataTransfer.getData('Text')); |
+ // If this is not a drop event generated by the application (all |
+ // of which have a dataType), then it was caused by dropping |
+ // something external to the app, in which case it might be an |
+ // environment configuration, so process it as such. |
+ var dataType = evt._event.dataTransfer.getData('dataType'); |
+ if (dataType === undefined) { |
+ env.importEnvironment(evt._event.dataTransfer.getData('Text')); |
+ } |
} |
evt.preventDefault(); |
evt.stopPropagation(); |