]> dev.renevier.net Git - syj.git/commitdiff
remove close button for geom form
authorarno <arno@renevier.net>
Tue, 7 Sep 2010 21:57:48 +0000 (23:57 +0200)
committerarno <arno@renevier.net>
Tue, 7 Sep 2010 21:57:48 +0000 (23:57 +0200)
public/js/syj.js

index 47e5540f3377d89591e5f2a9d731bf96e7699077..50184b2a6974fe0c97dc8f43db21a78d609166d0 100644 (file)
@@ -531,28 +531,6 @@ var SYJView = {
             styles = this.editControl.handler.layerOptions.styleMap.styles;
             styles.select = styles.select_for_canvas;
         }
             styles = this.editControl.handler.layerOptions.styleMap.styles;
             styles.select = styles.select_for_canvas;
         }
-        new CloseBtn($("geomform"), {
-            style : {
-                marginRight: "-40px",
-                marginTop: "-20px"
-            },
-            callback: function(form) {
-                this.viewMode();
-                this.mode = 'view';
-                SYJDataUi.viewmode();
-                this.messenger.hide();
-
-                if (this.unsavedRoute && typeof this.unsavedRoute.features !== "undefined") {
-                    this.viewLayer.addFeatures(this.unsavedRoute.features);
-                }
-                if (this.unsavedRoute && typeof this.unsavedRoute.title !== "undefined") {
-                    $("geom_title").value = this.unsavedRoute.title;
-                } else {
-                    $("geom_title").value = "";
-                }
-                this.unsavedRoute = null;
-            }.bind(this)
-        });
     },
 
     saveSuccess: function(transport) {
     },
 
     saveSuccess: function(transport) {