[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH 3/8] Update paper size in the 'Best fit' case
From: |
Thomas Petazzoni |
Subject: |
[Maposmatic-dev] [PATCH 3/8] Update paper size in the 'Best fit' case |
Date: |
Sat, 7 Aug 2010 11:18:48 +0200 |
Signed-off-by: Thomas Petazzoni <address@hidden>
---
www/media/map_rendering_form.js | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/www/media/map_rendering_form.js b/www/media/map_rendering_form.js
index a146fdf..a6ea76d 100644
--- a/www/media/map_rendering_form.js
+++ b/www/media/map_rendering_form.js
@@ -116,6 +116,16 @@ function filterAllowedPaper(paperlist)
}
else
$(item).hide();
+
+ if (paper == "Best fit") {
+ console.log(paperDef[0]);
+ console.log(paperDef[1]);
+ console.log(paperDef[2]);
+ paperSizeText = $("label em[class='papersize']", item);
+ width_cm = paperDef[1] / 10;
+ height_cm = paperDef[2] / 10;
+ paperSizeText.html("(" + width_cm.toFixed(1) + " × " +
height_cm.toFixed(1) + " cm²)");
+ }
});
$("#paperselection").show();
--
1.7.0.4
- [Maposmatic-dev] [PATCH 1/8] Implement the paper orientation selection, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] Re: [PATCH 1/8] Implement the paper orientation selection, Maxime Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 8/8] Put immediatly focus on the admin search box on page load, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 7/8] Re-indent Javascript code to 2 spaces, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 5/8] Support None/None initial paper size for the 'Best fit' case, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 6/8] Completely rework the Nominatim search, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 3/8] Update paper size in the 'Best fit' case,
Thomas Petazzoni <=
- [Maposmatic-dev] [PATCH 4/8] Only handle click on the label instead on the full <li> element, Thomas Petazzoni, 2010/08/08
- [Maposmatic-dev] [PATCH 2/8] Simplify preparePaperPanel() function, Thomas Petazzoni, 2010/08/08