Subversion Repository Public Repository

Nextrek

Diff Revisions 1028 vs 1029 for /legal-map/js/printItinerary.js

Diff revisions: vs.
  @@ -138,6 +138,7 @@
138 138 dataType: "text",
139 139 type: "GET",
140 140 success: function(data) {
141 + clearTimeout(myTimer);
141 142 $('#loader').hide();
142 143 $('#overlay').hide();
143 144 $('#toPrintContainer').fadeIn('slow');
  @@ -157,6 +158,7 @@
157 158 dataType: "text",
158 159 type: "GET",
159 160 success: function(data) {
161 + clearTimeout(myTimer);
160 162 $('#loader').hide();
161 163 $('#overlay').hide();
162 164 $('#toPrintContainer').fadeIn('slow');
  @@ -176,6 +178,7 @@
176 178 dataType: "text",
177 179 type: "GET",
178 180 success: function(data) {
181 + clearTimeout(myTimer);
179 182 $('#loader').hide();
180 183 $('#overlay').hide();
181 184 $('#toPrintContainer').fadeIn('slow');
  @@ -229,7 +232,7 @@
229 232
230 233 $('#loader').show();
231 234 $('#overlay').show();
232 - setTimeout(function() {
235 + myTimer = setTimeout(function() {
233 236 $('#loader').hide();
234 237 $('#overlay').hide();
235 238 console.log("Errore nel caricamento dell'articolo");