[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH 5/6] Re-indent properly prepareLanguagePanel()
From: |
Thomas Petazzoni |
Subject: |
[Maposmatic-dev] [PATCH 5/6] Re-indent properly prepareLanguagePanel() |
Date: |
Sat, 7 Aug 2010 23:39:23 +0200 |
Signed-off-by: Thomas Petazzoni <address@hidden>
---
www/media/map_rendering_form.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/www/media/map_rendering_form.js b/www/media/map_rendering_form.js
index c8cb406..6ef4e9e 100644
--- a/www/media/map_rendering_form.js
+++ b/www/media/map_rendering_form.js
@@ -188,10 +188,10 @@ function prepareLanguagePanel()
$('#id_map_language').children('option').each(function() {
if (! ($(this).val().match('.._' + selectedCountry.toUpperCase() + '\..*')
!= null
|| $(this).val() == 'C'))
- {
- $(this).remove();
- }
- else {
+ {
+ $(this).remove();
+ }
+ else {
if (! seen) {
$(this).attr("selected", "selected");
seen = true;
--
1.7.0.4
- [Maposmatic-dev] [PATCH 1/6] Tell Emacs about the indentation level for JS code, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] Re: [PATCH 1/6] Tell Emacs about the indentation level for JS code, Maxime Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 5/6] Re-indent properly prepareLanguagePanel(),
Thomas Petazzoni <=
- [Maposmatic-dev] [PATCH 2/6] Ignore left/right movements in the suggestion box, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 4/6] Use the reversegeo service to find the country code, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 3/6] Abort suggest Ajax query before starting a new one, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 6/6] Improve the language selector, Thomas Petazzoni, 2010/08/08