[Mapbender-commits] r9955 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Sep 4 21:17:07 PDT 2018
Author: armin11
Date: 2018-09-04 21:17:07 -0700 (Tue, 04 Sep 2018)
New Revision: 9955
Modified:
trunk/mapbender/http/plugins/mb_metadata_wfs_edit.js
Log:
Fix for contact select - thanx to federal state hesse ;-)
Modified: trunk/mapbender/http/plugins/mb_metadata_wfs_edit.js
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_wfs_edit.js 2018-09-04 07:20:41 UTC (rev 9954)
+++ trunk/mapbender/http/plugins/mb_metadata_wfs_edit.js 2018-09-05 04:17:07 UTC (rev 9955)
@@ -80,6 +80,13 @@
$metadataForm.easyform("fill", obj);
$('#license_source').css("display","none");
that.fillLicence(obj.wfs_termsofuse);
+ // select mdContact option
+ var select = document.getElementById('fkey_mb_group_id');
+ select.childNodes.forEach(function(option) {
+ if (option.value === obj.fkey_mb_group_id) {
+ option.selected = true;
+ }
+ });
that.valid();
}
});
More information about the Mapbender_commits
mailing list