summaryrefslogtreecommitdiff
path: root/chimere/static/base.js
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/static/base.js')
-rw-r--r--chimere/static/base.js10
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 */