Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/WebApplication/app.js @ 1547:bf195fc0797e
fix for Microsoft Edge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 12 Aug 2020 15:54:55 +0200 |
parents | d1806b4e4839 |
children | a4d82f1bcb10 |
comparison
equal
deleted
inserted
replaced
1546:94750ef63ad5 | 1547:bf195fc0797e |
---|---|
76 SeriesDragAccept: function(event) { | 76 SeriesDragAccept: function(event) { |
77 event.preventDefault(); | 77 event.preventDefault(); |
78 }, | 78 }, |
79 SeriesDragDrop: function(event) { | 79 SeriesDragDrop: function(event) { |
80 event.preventDefault(); | 80 event.preventDefault(); |
81 this.$emit('updated-series', event.dataTransfer.getData('seriesIndex')); | 81 |
82 // The "parseInt()" is because of Microsoft Edge Legacy (*) | |
83 this.$emit('updated-series', parseInt(event.dataTransfer.getData('seriesIndex'), 10)); | |
82 }, | 84 }, |
83 MakeActive: function() { | 85 MakeActive: function() { |
84 this.$emit('selected-viewport'); | 86 this.$emit('selected-viewport'); |
85 }, | 87 }, |
86 DecrementFrame: function() { | 88 DecrementFrame: function() { |
278 this.seriesIndex = seriesIndex; | 280 this.seriesIndex = seriesIndex; |
279 this.ready = true; | 281 this.ready = true; |
280 }, | 282 }, |
281 | 283 |
282 SeriesDragStart: function(event, seriesIndex) { | 284 SeriesDragStart: function(event, seriesIndex) { |
283 event.dataTransfer.setData('seriesIndex', seriesIndex); | 285 // It is necessary to use ".toString()" for Microsoft Edge Legacy (*) |
286 event.dataTransfer.setData('seriesIndex', seriesIndex.toString()); | |
284 }, | 287 }, |
285 | 288 |
286 SetViewportSeries: function(viewportIndex, seriesIndex) { | 289 SetViewportSeries: function(viewportIndex, seriesIndex) { |
287 var series = this.series[seriesIndex]; | 290 var series = this.series[seriesIndex]; |
288 | 291 |