Sfoglia il codice sorgente

updated DBG calendar

Piotr Labudda 8 anni fa
parent
commit
88b1e62684
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      SE/static/calendar.js

+ 2 - 0
SE/static/calendar.js

@@ -28,8 +28,10 @@ $(document).ready(function() {
 			cached[date] = true;
 			var link = BASE_URL + 'wfs-data.php/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=p5_default_db:GRAFIK_PRACY&SRSNAME=EPSG:3003&Filter=<ogc:Filter><ogc:And><ogc:PropertyIsLike wildCard="*" singleChar="^" escapeChar="!"><ogc:PropertyName>DATE</ogc:PropertyName><ogc:Literal>'+date+'-*</ogc:Literal></ogc:PropertyIsLike><ogc:PropertyIsEqualTo><ogc:PropertyName>L_APPOITMENT_USER</ogc:PropertyName><ogc:Literal>' + USER + '</ogc:Literal></ogc:PropertyIsEqualTo></ogc:And></ogc:Filter>';
 			//console.log(link);
+			if (DBG) console.log('DBG API fetch', link);
 
 			$.get(link, function(data){
+				if (DBG) console.log('DBG fetched data', data);
 				$.each($(data).find("featureMember"), function() {
 					var item = {
 						id: $(this).find("ID").text(),