Aplly patch from hobu for #539. This fixes a broken commitSuccess method.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2811 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-03-17 20:06:26 +00:00
parent 9e21e3337a
commit e6722b4ec7

View File

@@ -283,7 +283,7 @@ OpenLayers.Layer.WFS.prototype =
commitSuccess: function(request) {
var response = request.responseText;
if (response.indexOf('SUCCESS') != -1) {
this.report('WFS Transaction: SUCCESS', response);
this.commitReport('WFS Transaction: SUCCESS', response);
for(var i = 0; i < this.features.length; i++) {
i.state = null;
@@ -292,7 +292,7 @@ OpenLayers.Layer.WFS.prototype =
// foreach features: set state to null
} else if (response.indexOf('FAILED') != -1 ||
response.indexOf('Exception') != -1) {
this.report('WFS Transaction: FAILED', response);
this.commitReport('WFS Transaction: FAILED', response);
}
},