/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
and is published under the AGPL license. */
+"use strict";
+
document.observe("dom:loaded", function() {
var currentmail = $("account_email").value, form = $("accountform");
/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
and is published under the AGPL license. */
+"use strict";
+
document.observe("dom:loaded", function() {
var form = $("contactform");
form.setfocus();
+"use strict";
+
var WGS84 = new OpenLayers.Projection("EPSG:4326");
var Mercator = new OpenLayers.Projection("EPSG:900913");
/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
and is published under the AGPL license. */
+"use strict";
+
document.observe("dom:loaded", function() {
var form = $("loginform");
form.setfocus();
/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
and is published under the AGPL license. */
+
+"use strict";
+
function insertErrorBefore(elt, messageError) {
var message = new Element("div", {className: 'error'}).update(messageError);
elt.insert({before: message});
/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
and is published under the AGPL license. */
+"use strict";
+
// avoid openlayers alerts
OpenLayers.Console.userError = function(error) {
SYJView.messenger.setMessage(error, "error");
+"use strict";
+
var WGS84 = new OpenLayers.Projection("EPSG:4326");
var Mercator = new OpenLayers.Projection("EPSG:900913");
map.addLayers([baseLayer, viewLayer]);
viewLayer.addFeatures([wkt.read(gInitialGeom.data)]);
- extent = viewLayer.getDataExtent();
+ var extent = viewLayer.getDataExtent();
map.updateSize();
map.zoomToExtent(extent);
resizeMap();
/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
and is published under the AGPL license. */
+"use strict";
+
var CloseBtn = Class.create({
initialize: function(elt, options) {
var btn, imgsrc, style;
# copy scripts OpenLayers.js
for path in glob.glob('public/js/*.js'):
- shutil.copy(path, tmpdir)
+ if os.path.islink(path):
+ shutil.copy(path, tmpdir)
+ else:
+ # remove "use strict"; directive
+ with open(path) as inp:
+ dest = pathjoin(tmpdir, os.path.basename(path))
+ with open(dest, "w") as out:
+ for line in inp:
+ sline = line.strip()
+ if sline != '"use strict"' and sline != '"use strict";':
+ out.write(line)
# build OpenLayers.js
subprocess.call(['python', 'buildUncompressed.py',