X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;ds=sidebyside;f=public%2Fjs%2Fsyj.js;h=50184b2a6974fe0c97dc8f43db21a78d609166d0;hb=c57706da408cacae1008851edb650ac33865bd22;hp=565d0e15e243e5d7aeb76f240a62f79eb1c6ce86;hpb=450db0b33b38bcdf1f22eea6cab568d24a14e2c6;p=syj.git diff --git a/public/js/syj.js b/public/js/syj.js index 565d0e1..50184b2 100644 --- a/public/js/syj.js +++ b/public/js/syj.js @@ -353,7 +353,7 @@ var SYJView = { document.observe('simplebox:shown', this.observer.bindAsEventListener(this)); SYJPathLength.update(); - if (FileList && FileReader) { + if (window.FileList && window.FileReader) { $("map").observe("dragenter", function(evt) { evt.stop();}); $("map").observe("dragover", function(evt) { evt.stop();}); $("map").observe("drop", function(evt) { @@ -531,28 +531,6 @@ var SYJView = { 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) {