mirror of
https://github.com/Ekokumppanit/Bicyclesim.git
synced 2026-02-14 19:47:29 +00:00
Upgrade Meteor. Use keyboard for speed input.
This commit is contained in:
@@ -10,12 +10,12 @@ helpers = {
|
||||
}
|
||||
};
|
||||
|
||||
var activateInput = function (input) {
|
||||
activateInput = function (input) {
|
||||
input.focus();
|
||||
input.select();
|
||||
};
|
||||
|
||||
var okCancelEvents = function (selector, callbacks) {
|
||||
okCancelEvents = function (selector, callbacks) {
|
||||
var ok = callbacks.ok || function () {};
|
||||
var cancel = callbacks.cancel || function () {};
|
||||
|
||||
@@ -38,9 +38,3 @@ var okCancelEvents = function (selector, callbacks) {
|
||||
};
|
||||
return events;
|
||||
};
|
||||
|
||||
// From: https://github.com/tmeasday/meteor-deps-extensions
|
||||
Meteor.deps.isolate = function(fn) {
|
||||
var context = new Meteor.deps.Context();
|
||||
return context.run(fn);
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function maps_loaded() {
|
||||
maps_loaded = function maps_loaded() {
|
||||
|
||||
window.markers = []; // fuu
|
||||
|
||||
@@ -153,7 +153,7 @@ var Maps = function () {
|
||||
|
||||
var point = Points.findOne({_id: point_id});
|
||||
if (point) {
|
||||
street.setPosition(glatlng(point.latlng));
|
||||
street.setPosition(glatlng(point.latlng));
|
||||
map.setCenter(glatlng(point.latlng));
|
||||
|
||||
if (point.heading) street.setPov({zoom: 1, pitch: 0, heading: point.heading});
|
||||
@@ -170,7 +170,7 @@ $(document).ready(function () {
|
||||
init_edit();
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
window.onload = function () {
|
||||
var script = document.createElement("script");
|
||||
|
||||
Reference in New Issue
Block a user