refs #15 defensive check in restoreOptions

merge-requests/1/head
Julien Veyssier 2017-05-07 03:06:28 +02:00
parent a12552aae6
commit b37dad5ca6
1 changed files with 18 additions and 16 deletions

View File

@ -1280,6 +1280,7 @@
t('gpxedit', 'Error'));
});
optionsValues = $.parseJSON(optionsValues);
if (optionsValues) {
if ( optionsValues.markerstyle !== undefined
&& symbolIcons.hasOwnProperty(optionsValues.markerstyle)
) {
@ -1298,6 +1299,7 @@
gpxedit.restoredTileLayer = optionsValues.tilelayer;
}
}
}
function saveOptions() {
var optionsValues = {};