[Mapbender-commits] r6576 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jul 6 08:32:44 EDT 2010
Author: christoph
Date: 2010-07-06 12:32:44 +0000 (Tue, 06 Jul 2010)
New Revision: 6576
Modified:
trunk/mapbender/http/javascripts/map.php
Log:
attr is now optional in inputs
Modified: trunk/mapbender/http/javascripts/map.php
===================================================================
--- trunk/mapbender/http/javascripts/map.php 2010-07-05 15:39:55 UTC (rev 6575)
+++ trunk/mapbender/http/javascripts/map.php 2010-07-06 12:32:44 UTC (rev 6576)
@@ -291,7 +291,7 @@
target[i.method](link.value);
}
else {
- var arg = (!obj || !obj[link.attr]) ? undefined : obj[link.attr];
+ var arg = !obj ? undefined : (!obj[link.attr]) ? obj[link] : obj[link.attr];
new Mapbender.Warning("Method '" + i.method + "' in element '" + settings.id + "' called with value '" + $.toJSON(arg) + "' by event '" + link.event + "' in element '" + link.id + "'.");
target[i.method](arg);
}
More information about the Mapbender_commits
mailing list