diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-09-09 01:26:34 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-09-09 01:26:34 +0200 |
| commit | 0ccc30e337bb046000fb76d2337c2fb9792bc71f (patch) | |
| tree | bbf2307438389f91fdae1e618d0816238b0a015a /chimere/static/base.js | |
| parent | 5833aa61d039bf3d1f4372e0390ffc53b7d63eb9 (diff) | |
| download | Chimère-0ccc30e337bb046000fb76d2337c2fb9792bc71f.tar.bz2 Chimère-0ccc30e337bb046000fb76d2337c2fb9792bc71f.zip | |
Association of a GPX (or KML) file to a route (refs #302)
- new table in the model
- new form in route edition
- uploaded gpx file simplification
- automatic route creation from the GPX file
Diffstat (limited to 'chimere/static/base.js')
| -rw-r--r-- | chimere/static/base.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chimere/static/base.js b/chimere/static/base.js index 91ec310..3f9d39d 100644 --- a/chimere/static/base.js +++ b/chimere/static/base.js @@ -1,5 +1,5 @@ /* base function shared by some pages */ -/* Copyright (C) 2009-2010 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> +/* Copyright (C) 2009-2011 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -52,6 +52,14 @@ function showHide(id){ } } +/* open a popup window */ +function open_window(url){ + var newwindow = window.open(url, '_blank', + 'height=170,width=400,scrollbars=yes'); + if (window.focus) {newwindow.focus()} + return false; +} + function saveExtent() { /* save the current extent in a cookie */ |
