[Geoserver-devel] [JIRA] (GEOS-9617) Uncaught TypeError: Cannot set property 'disabled' of null at resizeStylePage

Stefan Overkamp created an issue

GeoServer / BugGEOS-9617

Uncaught TypeError: Cannot set property ‘disabled’ of null at resizeStylePage

Issue Type:

BugBug

Affects Versions:

2.17.0

Assignee:

Unassigned

Created:

14/May/20 10:47 AM

Environment:

Chrome, Firefox, Edge

Priority:

MediumMedium

Reporter:

Stefan Overkamp

I see following Javascript error in Geoserver admin gui, when resizing the window.

Uncaught TypeError: Cannot set property ‘disabled’ of null at resizeStylePage (VM840 jquery.fullscreen-ver-D69DCBA0FF6B036BBEEE78538C81855F.js:22)

geoserver-2.17.0\src\web\core\src\main\java\org\geoserver\web\js\jquery.fullscreen.js:22 is
document.getElementById(‘cm_editor_heigth’).disabled=false;

cm_editor_heigth is (only) available in StyleEditorPage. So on other pages getElementById(‘cm_editor_heigth’) is null !

Maybe it would be better to change jquery.fullscreen.js on line 17 to

if (document.getElementById(‘cm_editor_heigth’))

{ document.getElementById(‘cm_editor_heigth’).disabled=true; }

and on line 28 to

if (document.getElementById(‘cm_editor_heigth’))

{ document.getElementById(‘cm_editor_heigth’).disabled=false; }

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100126-sha1:a719cbc)

Atlassian logo