]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/application.js
Improve name selection with the query tool
[rails.git] / app / assets / javascripts / application.js
index f3ca5f37f463898b2412a83ab07298279f46059e..af67244bcb706604ed139f4758bb3bef504970b3 100644 (file)
@@ -68,14 +68,6 @@ window.updateLinks = function (loc, zoom, layers, object) {
     .toggleClass("disabled", editDisabled);
 };
 
-window.maximiseMap = function () {
-  $("#content").addClass("maximised");
-};
-
-window.minimiseMap = function () {
-  $("#content").removeClass("maximised");
-};
-
 $(document).ready(function () {
   var headerWidth = 0,
       compactWidth = 0;
@@ -132,6 +124,7 @@ $(document).ready(function () {
   I18n.fallbacks = true;
 
   OSM.preferred_editor = application_data.preferredEditor;
+  OSM.preferred_languages = application_data.preferredLanguages;
 
   if (application_data.user) {
     OSM.user = application_data.user;