maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [PATCH] Avoid resetting the language selector with empt


From: Maxime Petazzoni
Subject: [Maposmatic-dev] [PATCH] Avoid resetting the language selector with empty contents
Date: Sun, 10 Jan 2010 17:23:09 +0100

---
 www/media/osm_map.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/media/osm_map.js b/www/media/osm_map.js
index 6ee81ca..7902c8c 100644
--- a/www/media/osm_map.js
+++ b/www/media/osm_map.js
@@ -300,6 +300,8 @@ function suggest(input, results, osm_id, button, options) {
 
 /** Page initialization. */
 $(document).ready(function() {
+  languages = $('#id_map_language').html();
+
   function switchToAdminMode() {
     $('#mapform tbody').children('tr.bybbox').hide();
     $('#mapform tbody').children('tr.byadmin').show();
@@ -328,6 +330,4 @@ $(document).ready(function() {
           { selectedClass: 'selected',
             timeout: 150
           });
-
-  languages = $('#id_map_language').html();
 });
-- 
1.6.3.3.261.g85c6





reply via email to

[Prev in Thread] Current Thread [Next in Thread]