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