[Top][All Lists]
[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
- [Maposmatic-dev] [PATCH 15/24] Restored the two columns layout., (continued)
- [Maposmatic-dev] [PATCH 15/24] Restored the two columns layout., Maxime Petazzoni, 2010/01/10
- [Maposmatic-dev] [PATCH 16/24] Put the map generation form on its own page, Maxime Petazzoni, 2010/01/10
- [Maposmatic-dev] [PATCH 17/24] PO file update for UI changes. French is translated, Maxime Petazzoni, 2010/01/10
- [Maposmatic-dev] [PATCH 18/24] More work on the form behavior, added info note for unselectable items, Maxime Petazzoni, 2010/01/10
- [Maposmatic-dev] [PATCH 19/24] Cleanup and comment the suggest JS code, Maxime Petazzoni, 2010/01/10
- [Maposmatic-dev] [PATCH 20/24] Removed JQuery from the main page, it's not needed there, Maxime Petazzoni, 2010/01/10
- [Maposmatic-dev] [PATCH 21/24] Finished the form behavior with language preselection, Maxime Petazzoni, 2010/01/10
- [Maposmatic-dev] [PATCH 22/24] PO files update, Maxime Petazzoni, 2010/01/10
- [Maposmatic-dev] [PATCH 23/24] Fix layout and stylesheet for browser compatibility, Maxime Petazzoni, 2010/01/10
- [Maposmatic-dev] [PATCH 24/24] Improve suggest box behavior and usability, Maxime Petazzoni, 2010/01/10
- [Maposmatic-dev] [PATCH] Avoid resetting the language selector with empty contents,
Maxime Petazzoni <=