changeset 60:6f2d2b6f969a CellTable

Fix KML parser alerts
author Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
date Fri, 14 Dec 2012 16:32:55 +0100
parents 3a7691d29566
children eac73bf1ce6e
files war/scripts/sti/STICore.js
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/war/scripts/sti/STICore.js	Tue Dec 11 17:14:26 2012 +0100
+++ b/war/scripts/sti/STICore.js	Fri Dec 14 16:32:55 2012 +0100
@@ -320,7 +320,7 @@
 				return timeData.concat(dayData);
 			} 
 			catch (exception) {
-				core.alert("\""+timeString+"\" is no valid time/date");
+				alert("\""+timeString+"\" is no valid time/date");
 				return null;
 			}
 		}
@@ -405,7 +405,7 @@
 					}
 	            	return date;
 				} catch (e) {
-					core.alert("\""+timeData+"\" is no valid time/date");
+					alert("\""+timeData+"\" is no valid time/date");
 	            	
 	            	return null;
 	            }
@@ -431,7 +431,7 @@
 					timeSpan = { start: startTime, end: endTime };					
 				}
 				catch(e){
-					core.alert("No valid timestamp or timespan information for element " + i + ".");
+					alert("No valid timestamp or timespan information for element " + i + ".");
 
 					continue;
 				}
@@ -446,7 +446,7 @@
             	newObjects.push(new DataObject(name, description, place, timeStamp, timeSpan, g, lonlat[0], lonlat[1]));
 			}
 			catch(e){
-				core.alert("No valid coordinate information for element " + i + ".");
+				alert("No valid coordinate information for element " + i + ".");
 
 				continue;
 			}
@@ -497,7 +497,7 @@
 					try {
 						localkmlDoc = $.parseXML(reader.result);
 					} catch (e) {
-						core.alert("KML file is not valid XML. Please check opening/closing tags and check the spelling.");
+						alert("KML file is not valid XML. Please check opening/closing tags and check the spelling.");
 						
 						core.unblockUI();