maposmatic-dev
[Top][All Lists]
Advanced

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

[Maposmatic-dev] [PATCH] Hide the "next" arrow while papersize list is l


From: Étienne Loks
Subject: [Maposmatic-dev] [PATCH] Hide the "next" arrow while papersize list is loading.
Date: Sun, 25 Mar 2012 16:42:42 +0200

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

diff --git a/www/media/js/newmap.js b/www/media/js/newmap.js
index ed789fb..31ad34c 100644
--- a/www/media/js/newmap.js
+++ b/www/media/js/newmap.js
@@ -145,6 +145,7 @@ function preparePaperPanel()
   /* Start the Ajax request to get the list of allowed paper
    * sizes */
   $("#paperselection").hide();
+  $("#nextlink").hide();
   if (getCurrentMode() == 'bbox') {
     args = {
       lat_upper_left   : $("#lat_upper_left").val(),
@@ -164,7 +165,9 @@ function preparePaperPanel()
   }
 
   $.post("/apis/papersize/", args,
-         function(data) { filterAllowedPaper(data); });
+         function(data) { filterAllowedPaper(data);
+                          $("#nextlink").show()
+                        });
 }
 
 /** When using a by admin boundary area, contains the country code of
-- 
1.7.9.1




reply via email to

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