[Mapbender-commits] r8984 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jul 4 01:04:53 PDT 2014


Author: hwbllmnn
Date: 2014-07-04 01:04:52 -0700 (Fri, 04 Jul 2014)
New Revision: 8984

Modified:
   trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
fixed format selection in firefox


Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php	2014-07-03 08:51:31 UTC (rev 8983)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php	2014-07-04 08:04:52 UTC (rev 8984)
@@ -285,6 +285,9 @@
     var exportItem = function(data) {
         var dlg = $(exportHtml).dialog({ width: 330, height: 165 });
         $(dlg).find('input').bind('change', function() {
+            if(!$(this).is(':checked')) {
+                return;
+            }
             var fmt = $(this).val();
             var url;
             if(fmt === 'kml') {
@@ -302,6 +305,7 @@
             .attr('download', 'myfeatures.' + fmt)
             .attr('href', url);
         }).change();
+
         $(dlg).find('.digitize-export').bind('click', function() {
             if(window.chrome) {
                 var fmt = $(dlg).find('input:checked').val();



More information about the Mapbender_commits mailing list