Changed file preview removal from using dataset which is unsupported in ie10 to using the getAttribute method which is backwards and forwards compatible

Этот коммит содержится в:
Reed Garmsen
2015-06-29 15:04:08 -07:00
родитель e6b5bdef82
Коммит 0dd73fb9b3

Просмотреть файл

@@ -10,7 +10,7 @@ var Constants = require('../utils/constants.jsx');
module.exports = React.createClass({
handleRemove: function(e) {
var previewDiv = e.target.parentNode.parentNode;
this.props.onRemove(previewDiv.dataset.filename);
this.props.onRemove(previewDiv.getAttribute('data-filename'));
},
render: function() {
var previews = [];