From: arno Date: Mon, 9 Aug 2010 19:34:53 +0000 (+0200) Subject: button to start a route X-Git-Tag: v0.2~74 X-Git-Url: https://dev.renevier.net/?p=syj.git;a=commitdiff_plain;h=549a86ba5724503f5a7768ed87008ab1e2cb5921 button to start a route --- diff --git a/application/views/scripts/idx/index.phtml b/application/views/scripts/idx/index.phtml index 7d0fe87..001734b 100644 --- a/application/views/scripts/idx/index.phtml +++ b/application/views/scripts/idx/index.phtml @@ -21,7 +21,9 @@
- + geomform; diff --git a/public/js/syj.js b/public/js/syj.js index b5121d4..e32bc06 100644 --- a/public/js/syj.js +++ b/public/js/syj.js @@ -80,10 +80,6 @@ var SyjSaveUI = { }; var SyjEditUI = { - init: function() { - return this; - }, - hide: function() { $("edit-btn").blur(); $("edit-btn").hide(); @@ -263,7 +259,6 @@ var SYJView = { this.messenger.hide(); this.editMode(); }).bind(this)); - SyjEditUI.init().hide(); $("geomform").ajaxize({ presubmit: this.prepareForm.bind(this), @@ -290,11 +285,9 @@ var SYJView = { // XXX: ie has not guessed height of map main div yet during map // initialisation. Now, it will read it correctly. this.map.updateSize(); - SyjEditUI.show(); } else { extent = new OpenLayers.Bounds(gMaxExtent.minlon, gMaxExtent.minlat, gMaxExtent.maxlon, gMaxExtent.maxlat) .transform(WGS84, Mercator); - this.editMode(); } this.map.zoomToExtent(extent); document.observe('simplebox:shown', this.observer.bindAsEventListener(this));