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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Mar 2 02:36:34 PST 2015


Author: syed
Date: 2015-03-02 02:36:33 -0800 (Mon, 02 Mar 2015)
New Revision: 9159

Modified:
   trunk/mapbender/http/plugins/mb_metadata_layerPreview.js
Log:
fix upload image-form in metadata editor

Modified: trunk/mapbender/http/plugins/mb_metadata_layerPreview.js
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_layerPreview.js	2015-03-02 10:07:02 UTC (rev 9158)
+++ trunk/mapbender/http/plugins/mb_metadata_layerPreview.js	2015-03-02 10:36:33 UTC (rev 9159)
@@ -143,7 +143,7 @@
 
 $metadataLayerPreview.bind('uploadFormReady', function(e, form) {
     $(form).bind('submit', function() {
-        event.preventDefault();
+        // event.preventDefault();
         if ($('input[id="layer_id"]').val() == undefined) { // in wmc_metadata
 
             if ($('input[id="wmc_id"]').val() !== "") {
@@ -173,7 +173,7 @@
                 alert('Pleaese choose a layer before uploading an image');
             }
         }
-
+        return false;
     });
 });
 



More information about the Mapbender_commits mailing list