# HG changeset patch # User Sebastien Jodogne # Date 1597240495 -7200 # Node ID bf195fc0797e162044739e96eb71bef4455d5768 # Parent 94750ef63ad540ecb2495a8158861932649c4ca3 fix for Microsoft Edge diff -r 94750ef63ad5 -r bf195fc0797e Applications/StoneWebViewer/WebApplication/app.js --- a/Applications/StoneWebViewer/WebApplication/app.js Tue Aug 11 17:09:59 2020 +0200 +++ b/Applications/StoneWebViewer/WebApplication/app.js Wed Aug 12 15:54:55 2020 +0200 @@ -78,7 +78,9 @@ }, SeriesDragDrop: function(event) { event.preventDefault(); - this.$emit('updated-series', event.dataTransfer.getData('seriesIndex')); + + // The "parseInt()" is because of Microsoft Edge Legacy (*) + this.$emit('updated-series', parseInt(event.dataTransfer.getData('seriesIndex'), 10)); }, MakeActive: function() { this.$emit('selected-viewport'); @@ -280,7 +282,8 @@ }, SeriesDragStart: function(event, seriesIndex) { - event.dataTransfer.setData('seriesIndex', seriesIndex); + // It is necessary to use ".toString()" for Microsoft Edge Legacy (*) + event.dataTransfer.setData('seriesIndex', seriesIndex.toString()); }, SetViewportSeries: function(viewportIndex, seriesIndex) {