# HG changeset patch # User Sebastian Kruse # Date 1355499175 -3600 # Node ID 6f2d2b6f969a35d3b2c8bc2076cd9bf8f36c3a4d # Parent 3a7691d2956606e222d2a3f0efef49550c794784 Fix KML parser alerts diff -r 3a7691d29566 -r 6f2d2b6f969a war/scripts/sti/STICore.js --- 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();