Project

General

Profile

« Previous | Next » 

Revision 4307

upgrade to MapBuilder 1.5rc2 - includes support for Firefox 3 compatibility (yes, it is also EOLed)

View differences:

Logger.js
1 1
/*
2 2
License: LGPL as per: http://www.gnu.org/copyleft/lesser.html
3
$Id$
3
$Id: Logger.js 3091 2007-08-09 12:21:54Z gjvoosten $
4 4
*/
5 5

  
6
// Ensure this object's dependancies are loaded.
7
mapbuilder.loadScript(baseDir+"/model/ModelBase.js");
8

  
6 9
/**
7 10
 * Records a log of events that occur over the course of mapbuilder execution
8 11
 * @constructor
......
59 62
      Sarissa.setXpathNamespaces(tempDoc, "xmlns:xlink='http://www.w3.org/1999/xlink'");
60 63
      var onlineResource = tempDoc.selectSingleNode("//OnlineResource");
61 64
      var fileUrl = onlineResource.attributes.getNamedItem("xlink:href").nodeValue;
62
      alert("event log saved as:" + fileUrl);
65
      alert(mbGetMessage("eventLogSaved", fileUrl));
63 66
    } else {
64
      alert("unable to save event log; provide a serializeUrl property in config");
67
      alert(mbGetMessage("unableToSaveLog"));
65 68
    }
66 69
  }
67 70

  

Also available in: Unified diff