$this->view->headLink()->appendStylesheet('css/generic.css', "screen");
$this->view->headLink()->appendStylesheet('css/syj.css', "screen");
$this->view->headLink()->appendStylesheet('css/syjprint.css', "print");
+ $this->view->headMeta()->appendName('viewport', 'width=640px');
}
public function rawmode(Syj_Model_Path $path) {
<?php
$message = "";
-$msgclass = "info";
+$msgclass = "";
if ($this->errorMsg) {
$message .= $this->errorMsg;
$msgclass = "error";
$message .= $this->translate('To create a journey, just press <strong>"start a route"</strong> button, then click on the map to add points to your route. You can zoom and move the map with the controls in the top left corner');
$message .= "<br>";
$message .= $this->translate('When you have finished a path, press "create", button.');
+ $msgclass = "info optional";
}
?>
-webkit-border-radius: 5px;
border-radius: 5px;
}
+@media screen and (max-width: 640px) {
+ #message.optional {
+ display: none;
+ }
+}
/*
* menu rules
-webkit-border-radius: 5px;
border-radius: 5px;
background-color: white;
+ cursor: pointer;
}
.menu-item:hover {
background-color: #E0E0FF;
#data_controls {
position: absolute;
+ z-index: 11; /* to be over login-controls */
right: 0.5em;
bottom: 3em;
text-align: center;
background-color: white;
padding: 5px 1px 5px 1px;
position: relative; /* otherwise, under #map in ie */
+ margin-bottom: 10px;
}
/* nominatim-suggestions */
if (!infotoggler) {
infotoggler = new Toggler('path-infos-content');
$("path-infos-toggler").insert({bottom: infotoggler.element});
- $("path-infos-anchor").observe('click', function(evt) {
+ var anchor = $("path-infos-anchor");
+ var parent = anchor.up('.menu-item');
+ if (parent) {
+ anchor = parent;
+ }
+ anchor.observe('click', function(evt) {
evt.stop();
infotoggler.toggle(evt);
});
closeMethods: ["onescapekey", "onouterclick", "onbutton"]
});
- $(this.type + "_control_anchor").observe("click", function(evt) {
+ var anchor = $(this.type + '_control_anchor');
+ var parent = anchor.up('.menu-item');
+ if (parent) {
+ anchor = parent;
+ }
+ anchor.observe("click", function(evt) {
this.modalbox.show();
evt.stop();
}.bindAsEventListener(this));
},
setMessageStatus: function(div, status) {
- return div.removeClassName('error').
- removeClassName('warn').
- removeClassName('info').
- removeClassName('success').
- addClassName(status);
+ $A(["error", "warn", "info", "success", "optional"]).each(function(clname) {
+ div.removeClassName(clname);
+ });
+ if (typeof status === "string") {
+ div.addClassName(status);
+ } else {
+ $A(status).each(function(clname) {
+ div.addClassName(clname);
+ });
+ }
+ return div;
}
});
-Subproject commit e0ddb083172efd0ac1af0436e695ac180d3d7b74
+Subproject commit f92ab9b8184be61241eec13d8dd470f35c10fc4b