@@ -294,7 +294,7 @@ AJAX.registerOnload('gis_data_editor.js', function () {
294294 var prefix = name . substring ( 0 , name . length - 11 ) ;
295295 // Find the number of points
296296 var $noOfPointsInput = $ ( 'input[name=\'' + prefix + '[no_of_points]' + '\']' ) ;
297- var noOfPoints = parseInt ( $noOfPointsInput . val ( ) , 10 ) ;
297+ var noOfPoints = parseInt ( ( $noOfPointsInput . val ( ) as string ) , 10 ) ;
298298 // Add the new data point
299299 var html = addDataPoint ( noOfPoints , prefix ) ;
300300 $a . before ( html ) ;
@@ -314,7 +314,7 @@ AJAX.registerOnload('gis_data_editor.js', function () {
314314
315315 // Find the number of lines
316316 var $noOfLinesInput = $ ( 'input[name=\'' + prefix + '[no_of_lines]' + '\']' ) ;
317- var noOfLines = parseInt ( $noOfLinesInput . val ( ) , 10 ) ;
317+ var noOfLines = parseInt ( ( $noOfLinesInput . val ( ) as string ) , 10 ) ;
318318
319319 // Add the new linesting of inner ring based on the type
320320 var html = '<br>' ;
@@ -349,7 +349,7 @@ AJAX.registerOnload('gis_data_editor.js', function () {
349349 var prefix = name . substring ( 0 , name . length - 13 ) ;
350350 // Find the number of polygons
351351 var $noOfPolygonsInput = $ ( 'input[name=\'' + prefix + '[no_of_polygons]' + '\']' ) ;
352- var noOfPolygons = parseInt ( $noOfPolygonsInput . val ( ) , 10 ) ;
352+ var noOfPolygons = parseInt ( ( $noOfPolygonsInput . val ( ) as string ) , 10 ) ;
353353
354354 // Add the new polygon
355355 var html = window . Messages . strPolygon + ' ' + ( noOfPolygons + 1 ) + ':<br>' ;
@@ -378,7 +378,7 @@ AJAX.registerOnload('gis_data_editor.js', function () {
378378 var prefix = 'gis_data[GEOMETRYCOLLECTION]' ;
379379 // Find the number of geoms
380380 var $noOfGeomsInput = $ ( 'input[name=\'' + prefix + '[geom_count]' + '\']' ) ;
381- var noOfGeoms = parseInt ( $noOfGeomsInput . val ( ) , 10 ) ;
381+ var noOfGeoms = parseInt ( ( $noOfGeomsInput . val ( ) as string ) , 10 ) ;
382382
383383 var html1 = window . Messages . strGeometry + ' ' + ( noOfGeoms + 1 ) + ':<br>' ;
384384 var $geomType = $ ( 'select[name=\'gis_data[' + ( noOfGeoms - 1 ) + '][gis_type]\']' ) . clone ( ) ;
0 commit comments