clarified tooltips,

changed timers to short durations for testing
This commit is contained in:
DennisSchiefer 2012-07-05 14:16:36 +01:00
parent 8323ce78e3
commit d1bc05fcae

View File

@ -25,8 +25,8 @@ OSRM.GUI.extend( {
tooltips: { tooltips: {
// triggered in OSRM.Localization.setLanguageWrapper // triggered in OSRM.Localization.setLanguageWrapper
localization: localization:
{ timeout: 1800000, // 30min { timeout: 1800, // 30min
header: "[Tooltip] Localization", header: "Did you know? You can change the display language.",
body: "You can use the pulldown menu in the upper left corner to select your favorite language. " + body: "You can use the pulldown menu in the upper left corner to select your favorite language. " +
"<br/><br/>" + "<br/><br/>" +
"Don't despair if you cannot find your language of choice. " + "Don't despair if you cannot find your language of choice. " +
@ -35,8 +35,8 @@ tooltips: {
}, },
// triggered in OSRM.Map.click // triggered in OSRM.Map.click
clicking: clicking:
{ timeout: 60000, // 1min { timeout: 600, // 1min
header: "[Tooltip] Clicking to set markers", header: "Did you know? You can click on the map to set route markers.",
body: "You can click on the map with the left mouse button to set a source marker (green) or a target marker (red), " + body: "You can click on the map with the left mouse button to set a source marker (green) or a target marker (red), " +
"if the source marker already exists. " + "if the source marker already exists. " +
"The address of the selected location will be displayed in the boxes to the left. " + "The address of the selected location will be displayed in the boxes to the left. " +
@ -45,8 +45,8 @@ tooltips: {
}, },
// triggered in OSRM.Routing.getRoute_Dragging // triggered in OSRM.Routing.getRoute_Dragging
dragging: dragging:
{ timeout: 120000, // 2min { timeout: 1200, // 2min
header: "[Tooltip] Dragging markers", header: "Did you know? You can drag each route marker around the map.",
body: "You can drag a marker by clicking on it with the left mouse button and holding the button pressed. " + body: "You can drag a marker by clicking on it with the left mouse button and holding the button pressed. " +
"Then you can move the marker around the map and the route will be updated instantaneously. " + "Then you can move the marker around the map and the route will be updated instantaneously. " +
"<br/><br/>" + "<br/><br/>" +