[Mapbender-commits] r7467 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jan 24 06:32:35 EST 2011
Author: kmq
Date: 2011-01-24 03:32:35 -0800 (Mon, 24 Jan 2011)
New Revision: 7467
Modified:
trunk/mapbender/http/javascripts/mod_savewmc.js
Log:
delay attaching savewmc eventhandler to afterMapRequest to afterInit element
Modified: trunk/mapbender/http/javascripts/mod_savewmc.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_savewmc.js 2011-01-24 07:36:24 UTC (rev 7466)
+++ trunk/mapbender/http/javascripts/mod_savewmc.js 2011-01-24 11:32:35 UTC (rev 7467)
@@ -312,7 +312,7 @@
}
});
- Mapbender.events.init.register(function () {
+ Mapbender.events.afterInit.register(function(){
if (saveInSession === 1) {
options.$target.each(function () {
$(this).mapbender().events.afterMapRequest.register(function () {
@@ -322,6 +322,9 @@
});
});
}
+
+ });
+ Mapbender.events.init.register(function () {
var t = translatedI18nObj;
var savewmcHtml = '<div id="' + options.id + '_saveWMCForm" ' +
More information about the Mapbender_commits
mailing list