diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-03-14 23:46:43 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-03-14 23:46:43 +0100 |
commit | cc54195262b5e649f333f0d8592c3dfa2d7ef677 (patch) | |
tree | 9e8f7b46a6ad23164dbea5d18385e70c0655e9dd | |
parent | ff4b6a7f50fc806059d0dd93728e4faa557ff988 (diff) | |
download | Chimère-cc54195262b5e649f333f0d8592c3dfa2d7ef677.tar.bz2 Chimère-cc54195262b5e649f333f0d8592c3dfa2d7ef677.zip |
Correct bad javascript reinitialization of an object (closes #297)
-rw-r--r-- | chimere/static/main_map.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chimere/static/main_map.js b/chimere/static/main_map.js index 0527a5e..42c9b28 100644 --- a/chimere/static/main_map.js +++ b/chimere/static/main_map.js @@ -1,4 +1,4 @@ -/* Copyright (C) 2008-2010 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> +/* Copyright (C) 2008-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 @@ -369,12 +369,12 @@ function putMarker(layer, mark) { layer.addMarker(marker); /* show the item when designed in the permalink */ if (p_current_feature == feature.pk){ + p_current_feature = null; showPop(feature); clicked = true; updateDetail(feature.pk); map.setCenter(feature.lonlat, 17); updateCategories(); - p_current_feature = null; } return feature; } |