]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/IdxController.php
display logged user pseudo in footer
[syj.git] / application / controllers / IdxController.php
index 2ae85b951495c9ab91349de0b6b1e3a1b0970102..d3c4bcb20238c6f7727d6b1392cdb806fb3f4664 100644 (file)
@@ -39,8 +39,9 @@ class IdxController extends Zend_Controller_Action
             $title = $path->displayTitle;
             $this->view->path = $path;
             $geomform->geom_title->setValue($path->title);
-            $geomform->geom_data->setValue((string)$path->geom);
             $loginform->login_geom_id->setValue((string)$path->id);
+            $jsgeom = new phptojs\JsObject('gInitialGeom', array('data' => (string) $path->geom));
+            $this->view->headScript()->prependScript((string) $jsgeom);
         } else {
             $geomform->setAction('path');
             $extent = new phptojs\JsObject('gMaxExtent', $this->_helper->syjGeoip($this->getRequest()->getClientIp(true)));
@@ -110,6 +111,7 @@ class IdxController extends Zend_Controller_Action
             'editAction' => __("edit"),
             'createAction' => __("create"),
             'cloneAction' => __("duplicate"),
+            'unsavedConfirmExit' => __("You have an unsaved route"),
             );
     }